public class LegacyModuleFactory extends java.lang.Object implements ModuleFactory
LEGACY_MODULE_FACTORY| Constructor and Description |
|---|
LegacyModuleFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createModule(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor)
Creates the module instance.
|
<T> java.lang.Class<T> |
getModuleClass(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor) |
public <T> T createModule(java.lang.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 <T> java.lang.Class<T> getModuleClass(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor)
throws ModuleClassNotFoundException
ModuleClassNotFoundExceptionCopyright © 2013 Atlassian. All Rights Reserved.