Annotation Type NessieDbAdapter
-
@Target({FIELD,PARAMETER}) @Retention(RUNTIME) @Inherited public @interface NessieDbAdapter
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringconfigMethodOptional: name of method to update theconfigurationfor theDatabaseAdapter.java.lang.Class<? extends org.projectnessie.versioned.persist.adapter.events.AdapterEventConsumer>eventConsumerbooleaninitializeRepoWhether to initialize the adapter, defaults totrue.java.lang.Class<? extends org.projectnessie.versioned.StoreWorker>storeWorkerDeprecated.booleanwithTracing
-
-
-
Element Detail
-
configMethod
java.lang.String configMethod
Optional: name of method to update theconfigurationfor theDatabaseAdapter.The method must be
- static
- not private
- have a single parameter
org.projectnessie.versioned.persist.adapter.AdjustableDatabaseAdapterConfig - return
org.projectnessie.versioned.persist.adapter.DatabaseAdapterConfig
Example:
@NessieDbAdapter(configMethod = "applyTestClock") protected static DatabaseAdapter databaseAdapter; static DatabaseAdapterConfig applyTestClock(AdjustableDatabaseAdapterConfig config) { return config.withClock(TEST_CLOCK); }- Default:
- ""
-
-