Class LinkedHandlerFactory
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedHandlerFactory
- All Implemented Interfaces:
IActionHandlerFactory
Action handler factory that combines two handler factories.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.getHandler
(String handlerName) This method returns the action handler implementation for the specified action handler name.
-
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
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 interfaceIActionHandlerFactory
- Parameters:
handlerName
- The name of the action handler that is requested.- Returns:
- The action handler implementation for the specified name.
-