|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.osgi.module.BeanPrefixModuleFactory
public class BeanPrefixModuleFactory
The SpringBeanModuleFactory creates a java bean for the given module class by resolving the name to spring bean reference. It returns a reference to this bean.
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.plugin.module.ModuleFactory |
|---|
LEGACY_MODULE_FACTORY |
| Constructor Summary | |
|---|---|
BeanPrefixModuleFactory()
|
|
| Method Summary | ||
|---|---|---|
|
createModule(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor)
Creates the module instance. |
|
java.lang.String |
getPrefix()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanPrefixModuleFactory()
| Method Detail |
|---|
public <T> T createModule(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor)
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 null
public java.lang.String getPrefix()
getPrefix in interface PrefixModuleFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||