Class PrefixDelegatingModuleFactory

java.lang.Object
com.atlassian.plugin.module.PrefixDelegatingModuleFactory
All Implemented Interfaces:
ModuleFactory

public class PrefixDelegatingModuleFactory extends Object implements ModuleFactory
The default implementation of a ModuleFactory. The module class name can contain a prefix and this prefix determines which ModuleFactory is used to create the java class for this module descriptor.

If no prefix is supplied it will use ClassPrefixModuleFactory to create the module class object.

ModuleFactories are located via the following algorithm. First, the prefixes registered during construction are searched, then any implementations in the plugin's container, if applicable.

Implementation note: The plugin's container is searched, instead of a general search for all OSGi services registered against PrefixModuleFactory, because the factories have to be available before any modules are created, and Spring DM, for example, ensures all required service references are available before creating the context, which is then interpreted as an enabled plugin.

Since:
2.5.0