Class DefaultAutowireCapableWebworkActionRegistry
java.lang.Object
com.atlassian.jira.plugin.webwork.DefaultAutowireCapableWebworkActionRegistry
- All Implemented Interfaces:
AutowireCapableWebworkActionRegistry
public class DefaultAutowireCapableWebworkActionRegistry
extends Object
implements AutowireCapableWebworkActionRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsAction
(String action) Checks if the registry contains an entry for a particular action.com.atlassian.plugin.module.ContainerManagedPlugin
Gets the Plugin registered for a particular action.void
registerAction
(String action, com.atlassian.plugin.ModuleDescriptor moduleDescriptor) Register the action class (simple class name) to its Plugin.void
unregisterPluginModule
(com.atlassian.plugin.ModuleDescriptor moduleDescriptor) Unregister all actions for a plugin.
-
Constructor Details
-
DefaultAutowireCapableWebworkActionRegistry
public DefaultAutowireCapableWebworkActionRegistry()
-
-
Method Details
-
registerAction
Description copied from interface:AutowireCapableWebworkActionRegistry
Register the action class (simple class name) to its Plugin.- Specified by:
registerAction
in interfaceAutowireCapableWebworkActionRegistry
- Parameters:
action
- The action classmoduleDescriptor
- The plugin module in which the action lives.
-
unregisterPluginModule
public void unregisterPluginModule(com.atlassian.plugin.ModuleDescriptor moduleDescriptor) Description copied from interface:AutowireCapableWebworkActionRegistry
Unregister all actions for a plugin. This should be called whenver a webwork module is disabled.- Specified by:
unregisterPluginModule
in interfaceAutowireCapableWebworkActionRegistry
- Parameters:
moduleDescriptor
- The plugin module which will be unregistered
-
getPlugin
Description copied from interface:AutowireCapableWebworkActionRegistry
Gets the Plugin registered for a particular action. Will return Null if none is registered.- Specified by:
getPlugin
in interfaceAutowireCapableWebworkActionRegistry
- Parameters:
action
- The action class being instantiated- Returns:
- The Plugin in which the action lives
-
containsAction
Description copied from interface:AutowireCapableWebworkActionRegistry
Checks if the registry contains an entry for a particular action.- Specified by:
containsAction
in interfaceAutowireCapableWebworkActionRegistry
- Parameters:
action
- The action class to check for- Returns:
- true if a plugin is registered for this action.
-