Package com.atlassian.plugin.module
Class ClassPrefixModuleFactory
java.lang.Object
com.atlassian.plugin.module.ClassPrefixModuleFactory
- All Implemented Interfaces:
ModuleFactory,PrefixModuleFactory
The ClassModuleFactory creates a java bean for the given module class by using either the plugins container or the hostcontainer, depending
if the plugin implements
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.
- Since:
- 2.5.0
-
Field Summary
FieldsFields inherited from interface com.atlassian.plugin.module.ModuleFactory
LEGACY_MODULE_FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TcreateModule(String name, ModuleDescriptor<T> moduleDescriptor)
-
Field Details
-
hostContainer
-
-
Constructor Details
-
ClassPrefixModuleFactory
-
-
Method Details
-
createModule
- Specified by:
createModulein interfaceModuleFactory
-
getPrefix
- Specified by:
getPrefixin interfacePrefixModuleFactory- Returns:
- the prefix the module factory expects to be matched to
-