Class ActionHandlerFactory
java.lang.Object
com.aquima.interactions.framework.handler.ActionHandlerFactory
- All Implemented Interfaces:
IActionHandlerFactory
Action handler factory implementation that may be used to add action handler implementations.
- Since:
- 6.0
- Author:
- F. van der Meer
-
Constructor Summary
ConstructorsConstructorDescriptionActionHandlerFactory
(Map<String, IActionHandler> handlerMapping) Constructs the action handler factory with a map containing the action handlers. -
Method Summary
Modifier and TypeMethodDescriptiongetHandler
(String name) This method returns the action handler implementation for the specified action handler name.
-
Constructor Details
-
ActionHandlerFactory
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
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:
name
- The name of the action handler that is requested.- Returns:
- The action handler implementation for the specified name.
-