Interface StateAware<T extends StateBean>
public interface StateAware<T extends StateBean>
Interface that can be added to objects that are put into
BeanContext
to indicate that they contains a
StateBean
for use with StateService
.
When StateAware
objects are added to the
BeanContext
, the associated state bean will
automatically be registered with StateService
.
This requires that StateAware
objects create
their StateBean
before being added to the context.- Since:
- 1.0
- Version:
- 2023-10-07
-
Method Summary
-
Method Details
-
getState
T getState()Return the associated state bean.
-