Class ListenerModuleDescriptor

  • All Implemented Interfaces:
    PluginModuleFactory<Object>, com.atlassian.plugin.ModuleDescriptor<Object>, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware

    public class ListenerModuleDescriptor
    extends com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Object>
    implements PluginModuleFactory<Object>
    NOTE: This class has to be constructor injected since it's the only way moduleFactory can be set at its parent.
    • Field Summary

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

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

      Constructors 
      Constructor Description
      ListenerModuleDescriptor​(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object createModule()  
      void disabled()  
      void enabled()  
      Object getModule()  
      • 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, init, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
      • Methods inherited from interface com.atlassian.plugin.ModuleDescriptor

        getDisplayName, init
    • Constructor Detail

      • ListenerModuleDescriptor

        public ListenerModuleDescriptor​(com.atlassian.plugin.module.ModuleFactory moduleFactory,
                                        com.atlassian.event.api.EventPublisher eventPublisher)
    • Method Detail

      • getModule

        public Object getModule()
        Specified by:
        getModule in interface com.atlassian.plugin.ModuleDescriptor<Object>
        Specified by:
        getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Object>
      • enabled

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

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