Annotation Type NessiePersist


  • @Target({FIELD,PARAMETER})
    @Retention(RUNTIME)
    @Inherited
    public @interface NessiePersist
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String configMethod
      Optional: name of method to update the configuration for the Persist.
      boolean initializeRepo
      Whether to initialize the adapter, defaults to true.
    • Element Detail

      • configMethod

        java.lang.String configMethod
        Optional: name of method to update the configuration for the Persist.

        The method must be

        • static
        • not private
        • have a single parameter StoreConfig.Adjustable
        • return StoreConfig.Adjustable

        Example:

        
           @NessiePersist(configMethod = "applyTestClock")
           protected static Persist persist;
        
           static StoreConfig.Adjustable applyTestClock(StoreConfig.Adjustable config) {
             return ...
           }
         
        Default:
        ""
      • initializeRepo

        boolean initializeRepo
        Whether to initialize the adapter, defaults to true.
        Default:
        true