-
@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!