Package io.permazen
Class PermazenConfig
java.lang.Object
io.permazen.PermazenConfig
Configuration object used to create new
Permazen instances.- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PermazenConfig.Builderbuilder()Create aPermazenConfig.Builder.Get the underlyingDatabaseto be used.Get the Java model classes to be used.jakarta.validation.ValidatorFactoryGet theValidatorFactorythat will create theValidators used for validation within transactions.booleanDetermine whether thePermazeninstance shouldinitialize()automatically on instantiation.Convenience method that uses this instance to create a newPermazeninstance.
-
Method Details
-
getDatabase
Get the underlyingDatabaseto be used.- Returns:
- core API database to use
-
getValidatorFactory
public jakarta.validation.ValidatorFactory getValidatorFactory()Get theValidatorFactorythat will create theValidators used for validation within transactions.- Returns:
- factory for validators, or null to use the default
-
getModelClasses
Get the Java model classes to be used.- Returns:
- Java database model classes
-
isInitializeOnCreation
public boolean isInitializeOnCreation()Determine whether thePermazeninstance shouldinitialize()automatically on instantiation.- Returns:
- true to initialize on instantiation, false to defer initialization
-
builder
Create aPermazenConfig.Builder.- Returns:
- new
PermazenConfigbuilder
-
newPermazen
Convenience method that uses this instance to create a newPermazeninstance.- Returns:
- new database instance using this configuration
- See Also:
-