public abstract class AbstractActionManager extends Object implements ActionManager
ACTION| Constructor and Description | 
|---|
| AbstractActionManager(GriffonApplication application,
                     ActionFactory actionFactory,
                     ActionMetadataFactory actionMetadataFactory) | 
| Modifier and Type | Method and Description | 
|---|---|
| Action | actionFor(GriffonController controller,
         String actionName) | 
| Map<String,Action> | actionsFor(GriffonController controller) | 
| void | addActionHandler(ActionHandler actionHandler)Register an  ActionHandlerwith this instance. | 
| void | addActionInterceptor(ActionInterceptor actionInterceptor)Register an  ActionInterceptorwith this instance. | 
| void | createActions(GriffonController controller) | 
| protected Action | createAndConfigureAction(GriffonController controller,
                        String actionName,
                        Method method) | 
| protected Action | createControllerAction(GriffonController controller,
                      String actionName,
                      Method method) | 
| protected abstract void | doConfigureAction(Action action,
                 GriffonController controller,
                 String normalizeNamed,
                 String keyPrefix) | 
| protected Object | doInvokeAction(GriffonController controller,
              String actionName,
              Object[] updatedArgs) | 
| protected Configuration | getConfiguration() | 
| protected MessageSource | getMessageSource() | 
| protected Map<String,Threading.Policy> | getThreadingPolicies() | 
| protected UIThreadManager | getUiThreadManager() | 
| void | invokeAction(Action action,
            Object... args)Execute the action using registered  ActionHandlers. | 
| void | invokeAction(GriffonController controller,
            String actionName,
            Object... args)Execute the action using registered  ActionHandlers. | 
| protected boolean | isThreadingDisabled(String actionName) | 
| protected String | msg(String key,
   String actionName,
   String subkey,
   String defaultValue) | 
| String | normalizeName(String actionName) | 
| protected Threading.Policy | resolveThreadingPolicy() | 
| protected Threading.Policy | resolveThreadingPolicy(GriffonController controller) | 
| protected Threading.Policy | resolveThreadingPolicy(GriffonController controller,
                      String actionName) | 
| void | updateAction(Action action)Update the action's properties using registered  ActionHandlers. | 
| void | updateAction(GriffonController controller,
            String actionName)Update the action's properties using registered  ActionHandlers. | 
| void | updateActions()Updates all actions currently configured. | 
| void | updateActions(GriffonController controller)Updates all actions belonging to the supplied controller. | 
@Inject public AbstractActionManager(@Nonnull GriffonApplication application, @Nonnull ActionFactory actionFactory, @Nonnull ActionMetadataFactory actionMetadataFactory)
@Nonnull protected Configuration getConfiguration()
@Nonnull protected MessageSource getMessageSource()
@Nonnull protected UIThreadManager getUiThreadManager()
@Nonnull protected Map<String,Threading.Policy> getThreadingPolicies()
@Nonnull public Map<String,Action> actionsFor(@Nonnull GriffonController controller)
actionsFor in interface ActionManager@Nullable public Action actionFor(@Nonnull GriffonController controller, @Nonnull String actionName)
actionFor in interface ActionManagerpublic void createActions(@Nonnull GriffonController controller)
createActions in interface ActionManagerpublic void updateActions()
ActionManagerupdateActions in interface ActionManagerpublic void updateActions(@Nonnull GriffonController controller)
ActionManagerupdateActions in interface ActionManagercontroller - the controller that owns the actions to be updated.public void updateAction(@Nonnull Action action)
ActionManagerActionHandlers.updateAction in interface ActionManageraction - the action to be updatedpublic void updateAction(@Nonnull GriffonController controller, @Nonnull String actionName)
ActionManagerActionHandlers.updateAction in interface ActionManagercontroller - the controller that owns the actionactionName - the action's namepublic void invokeAction(@Nonnull Action action, @Nonnull Object... args)
ActionManagerActionHandlers.invokeAction in interface ActionManageraction - the action to be invokedargs - additional arguments to be sent to the actionpublic void invokeAction(@Nonnull GriffonController controller, @Nonnull String actionName, @Nonnull Object... args)
ActionManagerActionHandlers.invokeAction in interface ActionManagercontroller - the controller that owns the actionactionName - the action's nameargs - additional arguments to be sent to the action@Nullable protected Object doInvokeAction(@Nonnull GriffonController controller, @Nonnull String actionName, @Nonnull Object[] updatedArgs)
@Nonnull protected Threading.Policy resolveThreadingPolicy(@Nonnull GriffonController controller, @Nonnull String actionName)
@Nonnull protected Threading.Policy resolveThreadingPolicy(@Nonnull GriffonController controller)
@Nonnull protected Threading.Policy resolveThreadingPolicy()
public void addActionHandler(@Nonnull ActionHandler actionHandler)
ActionManagerActionHandler with this instance.addActionHandler in interface ActionManageractionHandler - the handler to be added to this ActionManagerpublic void addActionInterceptor(@Nonnull ActionInterceptor actionInterceptor)
ActionManagerActionInterceptor with this instance.addActionInterceptor in interface ActionManageractionInterceptor - the interceptor to be added to this ActionManager@Nonnull protected Action createAndConfigureAction(@Nonnull GriffonController controller, @Nonnull String actionName, @Nonnull Method method)
protected abstract void doConfigureAction(@Nonnull Action action, @Nonnull GriffonController controller, @Nonnull String normalizeNamed, @Nonnull String keyPrefix)
@Nonnull protected Action createControllerAction(@Nonnull GriffonController controller, @Nonnull String actionName, @Nonnull Method method)
@Nonnull public String normalizeName(@Nonnull String actionName)
normalizeName in interface ActionManager