com.atlassian.confluence.plugin.descriptor
Class ListenerModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Object>
      extended by com.atlassian.confluence.plugin.descriptor.ListenerModuleDescriptor
All Implemented Interfaces:
PluginModuleFactory<Object>, com.atlassian.plugin.ModuleDescriptor<Object>, com.atlassian.plugin.Resourced, 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
moduleClass, moduleClassName, moduleFactory, plugin, resources, singleton
 
Constructor Summary
ListenerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 Object createModule()
           
 void disabled()
           
 void enabled()
           
 Object getModule()
           
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, init, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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>

createModule

public Object createModule()
Specified by:
createModule in interface PluginModuleFactory<Object>

disabled

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


Copyright © 2003-2012 Atlassian. All Rights Reserved.