Class BambooEventListenerModuleDescriptor

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<BambooEventListener<?>>
com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor<BambooEventListener<?>>
com.atlassian.bamboo.plugin.descriptor.BambooEventListenerModuleDescriptor
All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor<BambooEventListener<?>>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware

public class BambooEventListenerModuleDescriptor extends AbstractBambooModuleDescriptor<BambooEventListener<?>>
  • Constructor Details

    • BambooEventListenerModuleDescriptor

      public BambooEventListenerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher)
  • Method Details

    • 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<BambooEventListener<?>>
      Returns:
      true if modules of this descriptor are mutable
    • enabled

      public void enabled()
      Specified by:
      enabled in interface com.atlassian.plugin.StateAware
      Overrides:
      enabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<BambooEventListener<?>>
    • disabled

      public void disabled()
      Specified by:
      disabled in interface com.atlassian.plugin.StateAware
      Overrides:
      disabled in class AbstractBambooModuleDescriptor<BambooEventListener<?>>