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
-
Element Details
-
autoClose
boolean autoCloseControl whether AutoCloseable field values are closed on disposal.- Returns:
- auto close on dispose
- Default:
true
-
autoReset
boolean autoResetControl whether to reset values on root stop (idle).- Returns:
- auto reset values
- Default:
true
-