public class

SingleModuleDescriptorFactory

extends Object
implements ListableModuleDescriptorFactory
java.lang.Object
   ↳ com.atlassian.plugin.osgi.external.SingleModuleDescriptorFactory<T extends com.atlassian.plugin.ModuleDescriptor<?>>

Class Overview

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.

Summary

Public Constructors
SingleModuleDescriptorFactory(HostContainer hostContainer, String type, Class<T> moduleDescriptorClass)
Constructs an instance using a specific host container
Public Methods
HostContainer getHostContainer()
ModuleDescriptor getModuleDescriptor(String type)
Class<? extends ModuleDescriptor<?>> getModuleDescriptorClass(String type)
Set<Class<ModuleDescriptor<?>>> getModuleDescriptorClasses()
boolean hasModuleDescriptor(String type)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.ModuleDescriptorFactory
From interface com.atlassian.plugin.osgi.external.ListableModuleDescriptorFactory

Public Constructors

public SingleModuleDescriptorFactory (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 instances
type The type of module
moduleDescriptorClass The descriptor class

Public Methods

public HostContainer getHostContainer ()

public Class<? extends ModuleDescriptor<?>> getModuleDescriptorClass (String type)

public Set<Class<ModuleDescriptor<?>>> getModuleDescriptorClasses ()

public boolean hasModuleDescriptor (String type)