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
ConstructorsConstructorDescriptionXWorkModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAction(com.atlassian.plugin.module.Element actionElement, com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext) protected static voidaddResultTypes(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.BuilderbuildPackageContext(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) voiddestroy()voiddisabled()voidenabled()getParams(com.atlassian.plugin.module.Element paramsElement) voidinit(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) voidinit(com.opensymphony.xwork2.config.Configuration configuration) booleanprotected voidloadDefaultInterceptorRef(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element element) protected voidloadGlobalResults(com.opensymphony.xwork2.config.entities.PackageConfig.Builder packageContext, com.atlassian.plugin.module.Element packageElement) protected voidloadInterceptors(com.opensymphony.xwork2.config.entities.PackageConfig.Builder context, com.atlassian.plugin.module.Element element) protected com.opensymphony.xwork2.config.entities.InterceptorStackConfigloadInterceptorStack(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) protected voidloadInterceptorStacks(com.atlassian.plugin.module.Element element, com.opensymphony.xwork2.config.entities.PackageConfig.Builder context) voidbooleanvoidregister(com.opensymphony.xwork2.inject.ContainerBuilder builder, com.opensymphony.xwork2.util.location.LocatableProperties props) voidsetConfigurationManager(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, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
enabledin interfacecom.atlassian.plugin.StateAware- Overrides:
enabledin classcom.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
-
disabled
public void disabled()- Specified by:
disabledin interfacecom.atlassian.plugin.StateAware- Overrides:
disabledin 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.ConfigurationExceptionClassNotFoundException
-
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:
initin interfacecom.opensymphony.xwork2.config.ContainerProvider- Specified by:
initin interfacecom.opensymphony.xwork2.config.PackageProvider- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-
needsReload
public boolean needsReload()- Specified by:
needsReloadin interfacecom.opensymphony.xwork2.config.ContainerProvider- Specified by:
needsReloadin interfacecom.opensymphony.xwork2.config.PackageProvider
-
loadPackages
public void loadPackages() throws com.opensymphony.xwork2.config.ConfigurationException- Specified by:
loadPackagesin 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:
registerin interfacecom.opensymphony.xwork2.config.ContainerProvider- Throws:
com.opensymphony.xwork2.config.ConfigurationException
-