| java.lang.Object |
| ↳ |
com.atlassian.plugin.module.LegacyModuleFactory |
Known Direct Subclasses
|
Class Overview
Legacy module factory that provides module classes for descriptors that aren't using an injected ModuleFactory
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.plugin.module.ModuleFactory
|
Public Constructors
public
LegacyModuleFactory
()
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
Class<T>
getModuleClass
(String name, ModuleDescriptor<T> moduleDescriptor)