| java.lang.Object |
| ↳ |
com.atlassian.plugin.osgi.module.BeanPrefixModuleFactory |
Class Overview
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.
Public Constructors
public
BeanPrefixModuleFactory
()
Public Methods
public
T
createModule
(String name, ModuleDescriptor<T> moduleDescriptor)
Creates the module instance. The module class name can contain a prefix. The delimiter of the prefix and the class name is ':'.
E.g.: 'bean:httpServletBean'. Which prefixes are supported depends on the registered com.atlassian.plugin.module.ModuleCreator.
The prefix is case in-sensitive.
Parameters
| 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 null |
Returns
- an instantiated object of the module class.
public
String
getPrefix
()