Class XWorkModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
com.atlassian.crowd.plugin.descriptors.XWorkModuleDescriptor
- All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<Void>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
,com.opensymphony.xwork2.config.ConfigurationProvider
,com.opensymphony.xwork2.config.ContainerProvider
,com.opensymphony.xwork2.config.PackageProvider
public class XWorkModuleDescriptor
extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
implements com.atlassian.plugin.StateAware, com.opensymphony.xwork2.config.ConfigurationProvider
-
Field Summary
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
-
Constructor Summary
ConstructorDescriptionXWorkModuleDescriptor
(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAction
(com.atlassian.plugin.module.Element actionElement, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext) protected static void
addResultTypes
(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element element) buildAllowedMethodNames
(com.atlassian.plugin.module.Element actionElement, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext) protected List<com.opensymphony.xwork2.config.entities.InterceptorMapping>
buildInterceptorList
(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) protected com.opensymphony.xwork2.config.entities.PackageConfig.Builder
buildPackageContext
(com.atlassian.plugin.module.Element packageElement, com.opensymphony.xwork2.config.Configuration configuration) buildResults
(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext) void
destroy()
void
disabled()
void
enabled()
getParams
(com.atlassian.plugin.module.Element paramsElement) void
init
(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) void
init
(com.opensymphony.xwork2.config.Configuration configuration) boolean
protected void
loadDefaultInterceptorRef
(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element element) protected void
loadGlobalResults
(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element packageElement) protected void
loadInterceptors
(com.opensymphony.xwork2.config.entities.PackageConfig.Builder context, com.atlassian.plugin.module.Element element) protected com.opensymphony.xwork2.config.entities.InterceptorStackConfig
loadInterceptorStack
(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) protected void
loadInterceptorStacks
(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) void
boolean
void
register
(com.opensymphony.xwork2.inject.ContainerBuilder builder, com.opensymphony.xwork2.util.location.LocatableProperties props) void
setConfigurationManager
(com.opensymphony.xwork2.config.ConfigurationManager configurationManager) Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
getDisplayName
-
Constructor Details
-
XWorkModuleDescriptor
public XWorkModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
setConfigurationManager
public void setConfigurationManager(com.opensymphony.xwork2.config.ConfigurationManager configurationManager) -
init
public void init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException -
enabled
public void enabled()- Specified by:
enabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
enabled
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
disabled
public void disabled()- Specified by:
disabled
in interfacecom.atlassian.plugin.StateAware
- Overrides:
disabled
in classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
isEnabled
public boolean isEnabled() -
loadInterceptors
protected void loadInterceptors(com.opensymphony.xwork2.config.entities.PackageConfig.Builder context, com.atlassian.plugin.module.Element element) throws com.opensymphony.xwork2.config.ConfigurationException - Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
loadDefaultInterceptorRef
protected void loadDefaultInterceptorRef(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element element) -
loadGlobalResults
protected void loadGlobalResults(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element packageElement) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
buildResults
protected Map<String,com.opensymphony.xwork2.config.entities.ResultConfig> buildResults(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
loadInterceptorStack
protected com.opensymphony.xwork2.config.entities.InterceptorStackConfig loadInterceptorStack(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) throws com.opensymphony.xwork2.config.ConfigurationException - Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
loadInterceptorStacks
protected void loadInterceptorStacks(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) throws com.opensymphony.xwork2.config.ConfigurationException - Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
addAction
protected void addAction(com.atlassian.plugin.module.Element actionElement, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext) throws com.opensymphony.xwork2.config.ConfigurationException, ClassNotFoundException - Throws:
com.opensymphony.xwork2.config.ConfigurationException
ClassNotFoundException
-
addResultTypes
protected static void addResultTypes(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element element) -
buildAllowedMethodNames
-
getModule
-
buildPackageContext
protected com.opensymphony.xwork2.config.entities.PackageConfig.Builder buildPackageContext(com.atlassian.plugin.module.Element packageElement, com.opensymphony.xwork2.config.Configuration configuration) -
buildInterceptorList
protected List<com.opensymphony.xwork2.config.entities.InterceptorMapping> buildInterceptorList(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) throws com.opensymphony.xwork2.config.ConfigurationException - Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
getParams
-
destroy
public void destroy() -
init
public void init(com.opensymphony.xwork2.config.Configuration configuration) throws com.opensymphony.xwork2.config.ConfigurationException - Specified by:
init
in interfacecom.opensymphony.xwork2.config.ContainerProvider
- Specified by:
init
in interfacecom.opensymphony.xwork2.config.PackageProvider
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
needsReload
public boolean needsReload()- Specified by:
needsReload
in interfacecom.opensymphony.xwork2.config.ContainerProvider
- Specified by:
needsReload
in interfacecom.opensymphony.xwork2.config.PackageProvider
-
loadPackages
public void loadPackages() throws com.opensymphony.xwork2.config.ConfigurationException- Specified by:
loadPackages
in interfacecom.opensymphony.xwork2.config.PackageProvider
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
register
public void register(com.opensymphony.xwork2.inject.ContainerBuilder builder, com.opensymphony.xwork2.util.location.LocatableProperties props) throws com.opensymphony.xwork2.config.ConfigurationException - Specified by:
register
in interfacecom.opensymphony.xwork2.config.ContainerProvider
- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-