public abstract class AbstractBambooModuleDescriptor<T>
extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
Constructor and Description |
---|
AbstractBambooModuleDescriptor()
Deprecated.
since 5.4 use the constructor which requires a
ModuleFactory |
AbstractBambooModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
Modifier and Type | Method and Description |
---|---|
void |
disabled() |
protected String |
getElementAsString(org.dom4j.Element element) |
protected String |
getFreeMarkerResourceLocation(String resourceName) |
T |
getModule() |
protected String |
getVelocityResourceLocation(String resourceName) |
protected <Z> Z |
instantiateClass(Class<Z> clazz) |
protected <Z> Z |
instantiateSubmodule(String submoduleName,
String submoduleClassName,
Class<Z> defaultSubmoduleClass) |
protected boolean |
isMutable()
Whether modules of this descriptor are supposed to be mutated by external components.
|
protected void |
postInit(T module)
Called during module initialization
after
InitablePluginModule.init(com.atlassian.plugin.ModuleDescriptor)
is called on module. |
protected void |
preInit(T module)
Called during module initialization
before
InitablePluginModule.init(com.atlassian.plugin.ModuleDescriptor)
is called on module. |
assertModuleClassImplements, checkPermissions, destroy, destroy, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, init, isBroken, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString
public AbstractBambooModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
@Deprecated public AbstractBambooModuleDescriptor()
ModuleFactory
AbstractBambooModuleDescriptor
s that require a default constructor.protected void preInit(T module)
InitablePluginModule.init(com.atlassian.plugin.ModuleDescriptor)
is called on module.module
- module to initializeprotected void postInit(T module)
InitablePluginModule.init(com.atlassian.plugin.ModuleDescriptor)
is called on module.module
- module to initializeprotected boolean isMutable()
true
, which means a fresh module instance will be created each time getModule()
is called.
Subclasses that are safe to cache a singleton instance of module throughout the life span of this descriptor
can override this method and return false
.
true
if modules of this descriptor are mutable@Nullable public T getModule()
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
protected <Z> Z instantiateClass(Class<Z> clazz)
@NotNull protected <Z> Z instantiateSubmodule(@NotNull String submoduleName, @NotNull String submoduleClassName, @Nullable Class<Z> defaultSubmoduleClass) throws ClassNotFoundException
ClassNotFoundException
@Nullable protected String getFreeMarkerResourceLocation(@NotNull String resourceName)
@Nullable protected String getVelocityResourceLocation(@NotNull String resourceName)
@Nullable protected String getElementAsString(org.dom4j.Element element)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.