Class ActionRegistry

java.lang.Object
com.iantapply.orchestra.engine.ActionRegistry

public final class ActionRegistry extends Object
Thread-safe registry of named action and condition extensions.
  • Constructor Details

    • ActionRegistry

      public ActionRegistry()
      Creates an empty registry.
  • Method Details

    • registerAction

      public void registerAction(String type, OrchestraAction action)
      Registers a unique action type.
      Parameters:
      type - case-insensitive type name
      action - implementation
      Throws:
      IllegalStateException - if the type is already registered
    • registerCondition

      public void registerCondition(String type, OrchestraCondition condition)
      Registers a unique condition type.
      Parameters:
      type - case-insensitive type name
      condition - implementation
      Throws:
      IllegalStateException - if the type is already registered
    • action

      public OrchestraAction action(String type)
      Looks up a registered action.
      Parameters:
      type - case-insensitive action type
      Returns:
      registered action
      Throws:
      IllegalArgumentException - if the type is unknown
    • condition

      public OrchestraCondition condition(String type)
      Looks up a registered condition.
      Parameters:
      type - case-insensitive condition type
      Returns:
      registered condition
      Throws:
      IllegalArgumentException - if the type is unknown