com.atlassian.plugin.osgi.factory.descriptor
Class ComponentModuleDescriptor<Object>

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor
      extended by com.atlassian.plugin.osgi.factory.descriptor.ComponentModuleDescriptor<Object>
All Implemented Interfaces:
ModuleDescriptor, Resourced, StateAware

public class ComponentModuleDescriptor<Object>
extends AbstractModuleDescriptor

Module descriptor for Spring components. Shouldn't be directly used outside providing read-only information.

Since:
2.2.0

Field Summary
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
moduleClass, moduleClassName, moduleFactory, plugin, resources, singleton
 
Constructor Summary
ComponentModuleDescriptor()
           
 
Method Summary
 Object getModule()
          The particular module object created by this plugin.
 String getModuleClassName()
          Deprecated. - BEWARE that this is a temporary method that will not exist for long. Deprecated since 2.3.0
protected  void loadClass(Plugin plugin, String clazz)
          Loads the module class that this descriptor provides, and will not necessarily be the implementation class.
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, init, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentModuleDescriptor

public ComponentModuleDescriptor()
Method Detail

loadClass

protected void loadClass(Plugin plugin,
                         String clazz)
                  throws PluginParseException
Description copied from class: AbstractModuleDescriptor
Loads the module class that this descriptor provides, and will not necessarily be the implementation class. Override this for module descriptors whose type cannot be determined via generics.

Overrides:
loadClass in class AbstractModuleDescriptor
clazz - The module class name to load
Throws:
PluginParseException

getModule

public Object getModule()
Description copied from interface: ModuleDescriptor
The particular module object created by this plugin.

Specified by:
getModule in interface ModuleDescriptor
Specified by:
getModule in class AbstractModuleDescriptor
Returns:
The module object created by this plugin.
See Also:
ModuleDescriptor.getModuleClass()

getModuleClassName

public String getModuleClassName()
Deprecated. - BEWARE that this is a temporary method that will not exist for long. Deprecated since 2.3.0

Returns:
Module Class Name
Since:
2.3.0


Copyright © 2012 Atlassian. All Rights Reserved.