Class SingleModuleDescriptorFactory<T extends com.atlassian.plugin.ModuleDescriptor>
java.lang.Object
com.atlassian.plugin.osgi.external.SingleModuleDescriptorFactory<T>
- All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptorFactory,ListableModuleDescriptorFactory
public class SingleModuleDescriptorFactory<T extends com.atlassian.plugin.ModuleDescriptor>
extends Object
implements ListableModuleDescriptorFactory
A single module descriptor factory for plugins to use when they want to expose just one plugin. Uses
HostContainer to optionally provide autowiring for new descriptor instances.- Since:
- 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionSingleModuleDescriptorFactory(com.atlassian.plugin.hostcontainer.HostContainer hostContainer, String type, Class<T> moduleDescriptorClass) Constructs an instance using a specific host container -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.plugin.hostcontainer.HostContainercom.atlassian.plugin.ModuleDescriptorgetModuleDescriptor(String type) Class<? extends com.atlassian.plugin.ModuleDescriptor>booleanhasModuleDescriptor(String type)
-
Constructor Details
-
SingleModuleDescriptorFactory
public SingleModuleDescriptorFactory(com.atlassian.plugin.hostcontainer.HostContainer hostContainer, String type, Class<T> moduleDescriptorClass) Constructs an instance using a specific host container- Parameters:
hostContainer- The host container to use to create descriptor instancestype- The type of modulemoduleDescriptorClass- The descriptor class- Since:
- 2.2.0
-
-
Method Details
-
getModuleDescriptor
- Specified by:
getModuleDescriptorin interfacecom.atlassian.plugin.ModuleDescriptorFactory
-
hasModuleDescriptor
- Specified by:
hasModuleDescriptorin interfacecom.atlassian.plugin.ModuleDescriptorFactory
-
getModuleDescriptorClass
- Specified by:
getModuleDescriptorClassin interfacecom.atlassian.plugin.ModuleDescriptorFactory
-
getModuleDescriptorKeys
- Specified by:
getModuleDescriptorKeysin interfaceListableModuleDescriptorFactory- Returns:
- the list of descriptor keys this module factory knows about.
- Since:
- 3.0.0
-
getModuleDescriptorClasses
- Specified by:
getModuleDescriptorClassesin interfaceListableModuleDescriptorFactory
-
getHostContainer
public com.atlassian.plugin.hostcontainer.HostContainer getHostContainer()
-