public class ClassPrefixModuleFactory extends Object implements PrefixModuleFactory
ContainerManagedPlugin.
The returned bean class should have all constructor dependencies injected. However it is the containers responsibility to inject the dependencies.
The ClassModuleFactory expects the fully qualified name of the java class.| Modifier and Type | Field and Description |
|---|---|
protected HostContainer |
hostContainer |
LEGACY_MODULE_FACTORY| Constructor and Description |
|---|
ClassPrefixModuleFactory(HostContainer hostContainer) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createModule(String name,
ModuleDescriptor<T> moduleDescriptor)
Creates the module instance.
|
String |
getPrefix() |
protected final HostContainer hostContainer
public ClassPrefixModuleFactory(HostContainer hostContainer)
public <T> T createModule(String name, ModuleDescriptor<T> moduleDescriptor) throws PluginParseException
ModuleFactorycom.atlassian.plugin.module.ModuleCreator.
The prefix is case in-sensitive.createModule in interface ModuleFactoryname - module class name, can contain a prefix followed by ":" and the class name. Cannot be null
If no prefix provided a default behaviour is assumed how to create the module class.moduleDescriptor - the ModuleDescriptor. Cannot be nullPluginParseException - If it failed to create the object.public String getPrefix()
getPrefix in interface PrefixModuleFactoryCopyright © 2014 Atlassian. All rights reserved.