Class ActionHandlerFactory

java.lang.Object
com.aquima.interactions.framework.handler.ActionHandlerFactory
All Implemented Interfaces:
IActionHandlerFactory

public class ActionHandlerFactory extends Object implements IActionHandlerFactory
Action handler factory implementation that may be used to add action handler implementations.
Since:
6.0
Author:
F. van der Meer
  • Constructor Details

    • ActionHandlerFactory

      public ActionHandlerFactory(Map<String,IActionHandler> handlerMapping)
      Constructs the action handler factory with a map containing the action handlers. The key of the map should be the handler name, and the value the action handler implementation.
      Parameters:
      handlerMapping - Map containing the action handlers for the factory.
  • Method Details

    • getHandler

      public IActionHandler getHandler(String name)
      Description copied from interface: IActionHandlerFactory
      This method returns the action handler implementation for the specified action handler name. When no handler is available for the specified name, this method should throw an exception.
      Specified by:
      getHandler in interface IActionHandlerFactory
      Parameters:
      name - The name of the action handler that is requested.
      Returns:
      The action handler implementation for the specified name.