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

public class AbstractCompositeItems<T> extends Object
Base implementation for all composite items.
  • Constructor Details

    • AbstractCompositeItems

      public AbstractCompositeItems()
      Constructs instance with an empty item list.
  • Method Details

    • setItems

      public void setItems(List<? extends T> items)
      Sets the list of items. This clears all existing items.
      Parameters:
      items - the new items
    • register

      public void register(T item)
      Register a new item.
      Parameters:
      item - the item
    • unregister

      public void unregister(T item)
      Unregister a item.
      Parameters:
      item - the item
    • getItems

      public OrderedCompositeItem<T> getItems()
      Gets the items.
      Returns:
      the items