You are here: Configuration > Common Configuration > Disable Constructor Testing

Test For Constructors

This setting is only relevant for some embedded platforms which need a constructor (for example Android).

On startup, db4o checks that the classes have a callable constructor. This may take some time, especially on embedded platforms. When you run in production, you can disable this check, when you are sure that all classes can be instantiated.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.TestConstructors = false;
CommonConfigurationExamples.cs: Disable testing for callable constructors
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.TestConstructors = False
CommonConfigurationExamples.vb: Disable testing for callable constructors