Annotation Type Persist


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Persist
    Annotate a field to be persisted between code changes. Unlike injected fields, persisted fields are not automatically created. Fields may be of any type, and field types must match exactly between iterations (including generics) for values to be persisted.

    By default, values will be reset when the root is stopped (idled), and AutoCloseable references will be closed when disposed.

    Persisted fields should be used sparingly and with care!

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean autoClose
      Control whether AutoCloseable field values are closed on disposal.
      boolean autoReset
      Control whether to reset values on root stop (idle).
    • Element Detail

      • autoClose

        boolean autoClose
        Control whether AutoCloseable field values are closed on disposal.
        Returns:
        auto close on dispose
        Default:
        true
      • autoReset

        boolean autoReset
        Control whether to reset values on root stop (idle).
        Returns:
        auto reset values
        Default:
        true