| java.lang.Object | |
| ↳ | com.atlassian.confluence.plugin.module.PluginModuleHolder<T> |
Manages the lifecycle of a plugin module of type T that is constructed when the
module is first requested via getModule() method. However if module type is StateAware
module is created and enabled once enabled() is called.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Changes the state of the module to
enabled. | |||||||||||
Creates a PluginModuleHolder with a custom module factory.
| |||||||||||
Creates a PluginModuleHolder for the given module descriptor with the default factory.
| |||||||||||
Returns the held module.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Changes the state of the module to enabled.
If module class is StateAware the module instance will
be created if it does not exist yet and then enabled() method on the
instance will be called.
However if it is not StateAware module, its instance will not be created and
creation will be deferred until the first time it is used!
| moduleClass | a type of the module that this holder holds. We cannot use the type parameter of this class because of java implementation of generics(erasure). |
|---|
| ClassCastException | if passed moduleClass is StateAware but the module type is not.
|
|---|
Creates a PluginModuleHolder with a custom module factory.
Creates a PluginModuleHolder for the given module descriptor with the default factory.
Returns the held module.
| IllegalStateException | if the module is not enabled |
|---|

