|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T> com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor<T>
public abstract class AbstractBambooModuleDescriptor<T>
Field Summary |
---|
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
---|
moduleClass, moduleClassName, moduleFactory, plugin, resources, singleton |
Constructor Summary | |
---|---|
AbstractBambooModuleDescriptor()
Needed for AbstractBambooModuleDescriptor s that require a default constructor. |
|
AbstractBambooModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
|
Method Summary | ||
---|---|---|
void |
disabled()
|
|
protected java.lang.String |
getFreeMarkerResourceLocation(java.lang.String resourceName)
|
|
T |
getModule()
|
|
protected java.lang.String |
getVelocityResourceLocation(java.lang.String resourceName)
|
|
protected
|
instantiateClass(java.lang.Class<Z> clazz)
|
|
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. |
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor |
---|
assertModuleClassImplements, destroy, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, init, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractBambooModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
public AbstractBambooModuleDescriptor()
AbstractBambooModuleDescriptor
s that require a default constructor.
Method Detail |
---|
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 mutablepublic T getModule()
getModule
in interface com.atlassian.plugin.ModuleDescriptor<T>
getModule
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
protected <Z> Z instantiateClass(java.lang.Class<Z> clazz)
@Nullable protected java.lang.String getFreeMarkerResourceLocation(@NotNull java.lang.String resourceName)
@Nullable protected java.lang.String getVelocityResourceLocation(@NotNull java.lang.String resourceName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |