public class

ClassPrefixModuleFactory

extends Object
implements PrefixModuleFactory
java.lang.Object
   ↳ com.atlassian.plugin.module.ClassPrefixModuleFactory

Class Overview

The ClassModuleFactory creates a java bean for the given module class by using either the plugins container or the hostcontainer, depending if the plugin implements ContainerManagedPlugin. The returned bean class should have all constructor dependencies injected. However it is the containers responsibility to inject the dependencies.

The ClassModuleFactory expects the fully qualified name of the java class.

Summary

Fields
protected final HostContainer hostContainer
[Expand]
Inherited Fields
From interface com.atlassian.plugin.module.ModuleFactory
Public Constructors
ClassPrefixModuleFactory(HostContainer hostContainer)
Public Methods
<T> T createModule(String name, ModuleDescriptor<T> moduleDescriptor)
Creates the module instance.
String getPrefix()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.module.ModuleFactory
From interface com.atlassian.plugin.module.PrefixModuleFactory

Fields

protected final HostContainer hostContainer

Public Constructors

public ClassPrefixModuleFactory (HostContainer hostContainer)

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 ()