Class SpringComponentModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor<Object>
com.atlassian.bamboo.plugin.descriptor.SpringComponentModuleDescriptor
- All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<Object>
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,com.atlassian.plugin.StateAware
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
public class SpringComponentModuleDescriptor
extends AbstractBambooModuleDescriptor<Object>
implements org.springframework.beans.factory.BeanFactoryAware
This module descriptor is responsible for injecting plugins1 components into the host Bamboo container.
Plugins2 components live in OSGi and are handled by the
ComponentModuleDescriptor
in the plugins framework.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
AbstractBambooModuleDescriptor.ClassNameSource, AbstractBambooModuleDescriptor.ModuleAvailability
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
CLASS
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
-
Constructor Summary
ConstructorDescriptionSpringComponentModuleDescriptor
(com.atlassian.plugin.module.ModuleFactory moduleFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enabled()
void
init
(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) protected boolean
Whether modules of this descriptor are supposed to be mutated by external components.void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) Methods inherited from class com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
disabled, getElementAsString, getFreeMarkerResourceLocation, getModule, getVelocityResourceLocation, instantiateClass, instantiateSubmodule, postInit, preInit, prepareSubModuleConfiguration, prepareSubModuleConfiguration
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, 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
-
SpringComponentModuleDescriptor
public SpringComponentModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
-
-
Method Details
-
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<Object>
-
isMutable
protected boolean isMutable()Description copied from class:AbstractBambooModuleDescriptor
Whether modules of this descriptor are supposed to be mutated by external components. By default this returnstrue
, which means a fresh module instance will be created each timeAbstractBambooModuleDescriptor.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
.- Overrides:
isMutable
in classAbstractBambooModuleDescriptor<Object>
- Returns:
true
if modules of this descriptor are mutable
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-