Class AbstractCompositeItems<T>
java.lang.Object
org.springframework.statemachine.support.AbstractCompositeItems<T>
- Type Parameters:
T
- the type of the item
- Direct Known Subclasses:
CompositeActionListener
,CompositeStateMachineModelVerifier
,CompositeStateMachineMonitor
Base implementation for all composite items.
- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetItems()
Gets the items.void
Register a new item.void
Sets the list of items.void
unregister
(T item) Unregister a item.
-
Constructor Details
-
AbstractCompositeItems
public AbstractCompositeItems()Constructs instance with an empty item list.
-
-
Method Details
-
setItems
Sets the list of items. This clears all existing items.- Parameters:
items
- the new items
-
register
Register a new item.- Parameters:
item
- the item
-
unregister
Unregister a item.- Parameters:
item
- the item
-
getItems
Gets the items.- Returns:
- the items
-