com.atlassian.jira.plugin.webwork
Class DefaultAutowireCapableWebworkActionRegistry

java.lang.Object
  extended by com.atlassian.jira.plugin.webwork.DefaultAutowireCapableWebworkActionRegistry
All Implemented Interfaces:
AutowireCapableWebworkActionRegistry

public class DefaultAutowireCapableWebworkActionRegistry
extends java.lang.Object
implements AutowireCapableWebworkActionRegistry


Constructor Summary
DefaultAutowireCapableWebworkActionRegistry()
           
 
Method Summary
 boolean containsAction(java.lang.String action)
          Checks if the registry contains an entry for a particular action.
 com.atlassian.plugin.AutowireCapablePlugin getPlugin(java.lang.String action)
          Gets the Plugin registered for a particular action.
 void registerAction(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAutowireCapableWebworkActionRegistry

public DefaultAutowireCapableWebworkActionRegistry()
Method Detail

registerAction

public void registerAction(java.lang.String action,
                           com.atlassian.plugin.ModuleDescriptor moduleDescriptor)
Description copied from interface: AutowireCapableWebworkActionRegistry
Register the action class (simple class name) to its Plugin.

Specified by:
registerAction in interface AutowireCapableWebworkActionRegistry
Parameters:
action - The action class
moduleDescriptor - 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 interface AutowireCapableWebworkActionRegistry
Parameters:
moduleDescriptor - The plugin module which will be unregistered

getPlugin

public com.atlassian.plugin.AutowireCapablePlugin getPlugin(java.lang.String action)
Description copied from interface: AutowireCapableWebworkActionRegistry
Gets the Plugin registered for a particular action. Will return Null if none is registered.

Specified by:
getPlugin in interface AutowireCapableWebworkActionRegistry
Parameters:
action - The action class being instantiated
Returns:
The Plugin in which the action lives

containsAction

public boolean containsAction(java.lang.String action)
Description copied from interface: AutowireCapableWebworkActionRegistry
Checks if the registry contains an entry for a particular action.

Specified by:
containsAction in interface AutowireCapableWebworkActionRegistry
Parameters:
action - The action class to check for
Returns:
true if a plugin is registered for this action.


Copyright © 2002-2010 Atlassian. All Rights Reserved.