com.atlassian.plugin.module
Class HostContainerLegacyAdaptor
java.lang.Object
com.atlassian.plugin.module.LegacyModuleFactory
com.atlassian.plugin.module.HostContainerLegacyAdaptor
- All Implemented Interfaces:
- ModuleFactory
public class HostContainerLegacyAdaptor
- extends LegacyModuleFactory
Legacy module factory that uses the deprecated AutowireCapablePlugin interface
- Since:
- 2.5.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HostContainerLegacyAdaptor
public HostContainerLegacyAdaptor(HostContainer hostContainer)
createModule
public <T> T createModule(String name,
ModuleDescriptor<T> moduleDescriptor)
throws PluginParseException
- Description copied from interface:
ModuleFactory
- 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.
- Specified by:
createModule in interface ModuleFactory- Overrides:
createModule in class LegacyModuleFactory
- 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.
- Throws:
PluginParseException - If it failed to create the object.
Copyright © 2011 Atlassian. All Rights Reserved.