Package io.permazen
Class PermazenConfig
java.lang.Object
io.permazen.PermazenConfig
Configuration object used to create new
Permazen
instances.- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PermazenConfig.Builder
builder()
Create aPermazenConfig.Builder
.Get the underlyingDatabase
to be used.Get the Java model classes to be used.jakarta.validation.ValidatorFactory
Get theValidatorFactory
that will create theValidator
s used for validation within transactions.boolean
Determine whether thePermazen
instance shouldinitialize()
automatically on instantiation.Convenience method that uses this instance to create a newPermazen
instance.
-
Method Details
-
getDatabase
Get the underlyingDatabase
to be used.- Returns:
- core API database to use
-
getValidatorFactory
public jakarta.validation.ValidatorFactory getValidatorFactory()Get theValidatorFactory
that will create theValidator
s 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 thePermazen
instance shouldinitialize()
automatically on instantiation.- Returns:
- true to initialize on instantiation, false to defer initialization
-
builder
Create aPermazenConfig.Builder
.- Returns:
- new
PermazenConfig
builder
-
newPermazen
Convenience method that uses this instance to create a newPermazen
instance.- Returns:
- new database instance using this configuration
- See Also:
-