Class 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.

    • Field Summary

      • Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor

        key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
    • Constructor Detail

      • SpringComponentModuleDescriptor

        public SpringComponentModuleDescriptor​(com.atlassian.plugin.module.ModuleFactory moduleFactory)
    • Method Detail

      • init

        public void init​(com.atlassian.plugin.Plugin plugin,
                         org.dom4j.Element element)
                  throws com.atlassian.plugin.PluginParseException
        Specified by:
        init in interface com.atlassian.plugin.ModuleDescriptor<Object>
        Overrides:
        init in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Object>
        Throws:
        com.atlassian.plugin.PluginParseException
      • enabled

        public void enabled()
        Specified by:
        enabled in interface com.atlassian.plugin.StateAware
        Overrides:
        enabled in class com.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 returns true, 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.

        Overrides:
        isMutable in class AbstractBambooModuleDescriptor<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 interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException