public interface ModuleFactory
ModuleFactory creates the module class of a ModuleDescriptor.
The ModuleFactory is injected into the AbstractModuleDescriptor and encapsulates the different
strategies how the module class can be created.| Modifier and Type | Field and Description |
|---|---|
static ModuleFactory |
LEGACY_MODULE_FACTORY
Returns the module class.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createModule(String name,
ModuleDescriptor<T> moduleDescriptor)
Creates the module instance.
|
static final ModuleFactory LEGACY_MODULE_FACTORY
com.atlassian.plugin.module.ModuleCreator.<T> T createModule(String name, ModuleDescriptor<T> moduleDescriptor) throws PluginParseException
com.atlassian.plugin.module.ModuleCreator.
The prefix is case in-sensitive.name - 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.Copyright © 2014 Atlassian. All rights reserved.