public class ActionFactory extends Object
| Constructor and Description |
|---|
ActionFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> G9Action<T> |
getAction(ActionType actionType,
ActionTarget target,
Class<T> targetType,
ActionTask<T> actionTask,
ApplicationController applicationController)
Returns a G9Action for the specified application controller.
|
<T> G9Action<T> |
getAction(ActionType actionType,
ActionTarget target,
Class<T> targetType,
ActionTask<T> actionTask,
DialogController dialogController)
Creates an action that corresponds to the specified type and target.
|
ActionHookList<?> |
getActionHookList(ActionTarget actionTarget,
ActionType actionType)
Get the list of action hooks for the specified action target and type.
|
G9Action<?> |
getInvokeAction(RemoteServiceTarget rst,
DialogController dialogController)
Create the specified invoke action that will bind parameters and invoke
the remote service.
|
<T> void |
registerHook(ActionTarget actionTarget,
ActionType actionType,
ActionHook<T> hook)
Registers a hook for the given target and type.
|
public <T> G9Action<T> getAction(ActionType actionType, ActionTarget target, Class<T> targetType, ActionTask<T> actionTask, DialogController dialogController)
T - The target class type.actionType - the type of actiontarget - the action targettargetType - the target type classactionTask - the action taskdialogController - the action's dialog controllerpublic G9Action<?> getInvokeAction(RemoteServiceTarget rst, DialogController dialogController)
rst - the remote service target.dialogController - the dialog controllerpublic <T> G9Action<T> getAction(ActionType actionType, ActionTarget target, Class<T> targetType, ActionTask<T> actionTask, ApplicationController applicationController)
T - the action target typeactionType - the action typetarget - the action targettargetType - the action target typeactionTask - the action taskapplicationController - the application controllerpublic <T> void registerHook(ActionTarget actionTarget, ActionType actionType, ActionHook<T> hook)
T - The target typeactionTarget - the action targetactionType - the action typehook - an hook for the specified actionpublic ActionHookList<?> getActionHookList(ActionTarget actionTarget, ActionType actionType)
actionTarget - the target of the actionactionType - the action typeCopyright © 2006–2020 Esito AS. All rights reserved.