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
com.atlassian.plugin.osgi.factory.descriptor.ComponentModuleDescriptor in the plugins framework.
| Constructor and Description |
|---|
SpringComponentModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
enabled() |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
protected boolean |
isMutable()
Whether modules of this descriptor are supposed to be mutated by external components.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
disabled, getElementAsString, getFreeMarkerResourceLocation, getModule, getVelocityResourceLocation, instantiateClass, instantiateSubmodule, postInit, preInitassertModuleClassImplements, checkPermissions, destroy, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isBroken, isEnabled, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toStringpublic SpringComponentModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
public void init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element)
throws com.atlassian.plugin.PluginParseException
public void enabled()
enabled in interface com.atlassian.plugin.StateAwareenabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Object>protected boolean isMutable()
AbstractBambooModuleDescriptortrue, which means a fresh module instance will be created each time AbstractBambooModuleDescriptor.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.
isMutable in class AbstractBambooModuleDescriptor<Object>true if modules of this descriptor are mutablepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.