Interface Actions

All Known Implementing Classes:
ActionsImpl

public interface Actions
Factory to create actions declared as ActionType.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends Action>
    T
    create(String actionTypeId)
    Creates an instance of an action by its type identifier.
    <T extends Action>
    T
    create(String actionTypeId, String id)
    Creates an instance of a specified action type.
  • Method Details

    • create

      <T extends Action> T create(String actionTypeId)
      Creates an instance of an action by its type identifier.
      Type Parameters:
      T - the type of the action, extending Action
      Parameters:
      actionTypeId - the identifier of the action type
      Returns:
      an instance of the specified action type
    • create

      <T extends Action> T create(String actionTypeId, String id)
      Creates an instance of a specified action type.
      Type Parameters:
      T - the type of the action to be created, which must extend the Action class
      Parameters:
      actionTypeId - the unique identifier of the action type to create
      id - the identifier for the specific instance of the action
      Returns:
      an instance of the specified action type