Class LinkedHandlerFactory

java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedHandlerFactory
All Implemented Interfaces:
IActionHandlerFactory

public final class LinkedHandlerFactory extends Object implements IActionHandlerFactory
Action handler factory that combines two handler factories.
Since:
6.0
Author:
O. Kerpershoek
  • Method Details

    • createFor

      public static IActionHandlerFactory createFor(IActionHandlerFactory factory, IActionHandlerFactory defaultFactory)
      This method returns a handler factory implementation that combines both the handler factories that are passed to this method.
      Parameters:
      factory - The handler factory that should be used first when requesting an action handler (optional).
      defaultFactory - The handler factory that should be used when the first did not supply an action handler implementation (mandatory).
      Returns:
      a handler factory implementation that combines both the handler factories that are passed to this method.
    • getHandler

      public IActionHandler getHandler(String handlerName)
      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:
      handlerName - The name of the action handler that is requested.
      Returns:
      The action handler implementation for the specified name.