| Modifier and Type | Method and Description |
|---|---|
static Resources |
Resources.fromXml(org.dom4j.Element element)
Parses the resource descriptors from the provided plugin XML element and
creates a Resources object containing them.
|
<M> java.util.List<ModuleDescriptor<M>> |
PluginAccessor.getEnabledModuleDescriptorsByType(java.lang.String type)
Deprecated.
since 0.17, use
PluginAccessor.getModuleDescriptors(com.atlassian.plugin.predicate.ModuleDescriptorPredicate) with an appropriate predicate instead. |
ModuleDescriptor<?> |
DefaultModuleDescriptorFactory.getModuleDescriptor(java.lang.String type) |
ModuleDescriptor<?> |
ModuleDescriptorFactory.getModuleDescriptor(java.lang.String type) |
java.io.InputStream |
XmlPluginArtifact.getResourceAsStream(java.lang.String name)
Always returns null, since it doesn't make sense for an XML artifact
|
java.io.InputStream |
JarPluginArtifact.getResourceAsStream(java.lang.String fileName) |
java.io.InputStream |
PluginArtifact.getResourceAsStream(java.lang.String name) |
void |
PluginSystemLifecycle.init()
Initialise the plugin system.
|
void |
ModuleDescriptor.init(Plugin plugin,
org.dom4j.Element element)
Initialise a module given it's parent plugin and the XML element
representing the module.
|
java.lang.String |
PluginController.installPlugin(PluginArtifact pluginArtifact)
Deprecated.
Since 2.3.0, use
PluginController.installPlugins(PluginArtifact...) instead |
java.util.Set<java.lang.String> |
PluginController.installPlugins(PluginArtifact... pluginArtifacts)
Installs multiple plugins and returns the list of plugin keys.
|
int |
PluginController.scanForNewPlugins()
Search all loaders and add any new plugins you find.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractModuleDescriptor.assertModuleClassImplements(java.lang.Class<T> requiredModuleClazz)
Check that the module class of this descriptor implements a given
interface, or extends a given class.
|
static UnloadableModuleDescriptor |
UnloadableModuleDescriptorFactory.createUnloadableModuleDescriptor(Plugin plugin,
org.dom4j.Element element,
java.lang.Throwable e,
ModuleDescriptorFactory moduleDescriptorFactory)
Creates a new UnloadableModuleDescriptor, for when a problem occurs during the construction
of the ModuleDescriptor itself.
|
static UnrecognisedModuleDescriptor |
UnrecognisedModuleDescriptorFactory.createUnrecognisedModuleDescriptor(Plugin plugin,
org.dom4j.Element element,
java.lang.Throwable e,
ModuleDescriptorFactory moduleDescriptorFactory)
Creates a new UnrecognisedModuleDescriptor, for when a problem occurs during the retrieval
of the ModuleDescriptor itself.
|
ModuleDescriptor<?> |
ChainModuleDescriptorFactory.getModuleDescriptor(java.lang.String type) |
void |
AbstractModuleDescriptor.init(Plugin plugin,
org.dom4j.Element element) |
protected void |
AbstractModuleDescriptor.loadClass(Plugin plugin,
org.dom4j.Element element)
Deprecated.
Since 2.1.0, use
AbstractModuleDescriptor.loadClass(Plugin,String) instead |
protected void |
UnloadableModuleDescriptor.loadClass(Plugin plugin,
org.dom4j.Element element) |
protected void |
AbstractModuleDescriptor.loadClass(Plugin plugin,
java.lang.String clazz)
Loads the module class that this descriptor provides, and will not
necessarily be the implementation class.
|
protected void |
UnloadableModuleDescriptor.loadClass(Plugin plugin,
java.lang.String clazz) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
XmlDynamicPluginFactory.canCreate(PluginArtifact pluginArtifact) |
java.lang.String |
AbstractPluginFactory.canCreate(PluginArtifact pluginArtifact)
Determines if this deployer can handle this artifact by looking for the plugin descriptor
|
java.lang.String |
PluginFactory.canCreate(PluginArtifact pluginArtifact)
Determines if this factory can handle this artifact.
|
Plugin |
AbstractPluginFactory.create(DeploymentUnit deploymentUnit,
ModuleDescriptorFactory moduleDescriptorFactory)
Deprecated.
|
Plugin |
PluginFactory.create(DeploymentUnit deploymentUnit,
ModuleDescriptorFactory moduleDescriptorFactory)
Deprecated.
Since 2.2.0, use
PluginFactory.create(PluginArtifact,ModuleDescriptorFactory) instead |
Plugin |
XmlDynamicPluginFactory.create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin artifact
|
Plugin |
PluginFactory.create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin artifact by instantiating the plugin and configuring it.
|
Plugin |
LegacyDynamicPluginFactory.create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin artifact
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
DynamicPluginLoader.canLoad(PluginArtifact pluginArtifact)
Determines if this loader can load the jar.
|
java.lang.String |
ScanningPluginLoader.canLoad(PluginArtifact pluginArtifact)
Determines if the artifact can be loaded by any of its deployers
|
static java.util.List<ResourceDescriptor> |
LoaderUtils.getResourceDescriptors(org.dom4j.Element element)
Deprecated.
|
java.lang.Iterable<Plugin> |
PluginLoader.loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
Loads all plugins that can be installed in the plugin system.
|
java.lang.Iterable<Plugin> |
ClassPathPluginLoader.loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory) |
java.lang.Iterable<Plugin> |
PermissionCheckingPluginLoader.loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory) |
java.lang.Iterable<Plugin> |
PluginLoader.loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory)
Load all newly found plugins that can be installed in the plugin system.
|
java.lang.Iterable<Plugin> |
ScanningPluginLoader.loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory) |
java.lang.Iterable<Plugin> |
PermissionCheckingPluginLoader.loadFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory) |
protected Plugin |
SinglePluginLoader.loadPlugin(ModuleDescriptorFactory moduleDescriptorFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultPluginManager.addPlugin(PluginLoader loader,
Plugin plugin)
Deprecated.
Since 2.0.2, use
#addPlugins(PluginLoader,Collection instead |
protected void |
DefaultPluginManager.addPlugins(PluginLoader loader,
java.util.Collection<Plugin> pluginsToInstall)
Update the local plugin state and enable state aware modules.
|
<M> java.util.List<ModuleDescriptor<M>> |
DefaultPluginManager.getEnabledModuleDescriptorsByType(java.lang.String type)
Deprecated.
since 0.17, use
DefaultPluginManager.getModuleDescriptors(com.atlassian.plugin.predicate.ModuleDescriptorPredicate)
with an appropriate predicate instead. |
void |
DefaultPluginManager.init() |
java.lang.String |
DefaultPluginManager.installPlugin(PluginArtifact pluginArtifact) |
java.util.Set<java.lang.String> |
DefaultPluginManager.installPlugins(PluginArtifact... pluginArtifacts) |
int |
DefaultPluginManager.scanForNewPlugins() |
| Modifier and Type | Class and Description |
|---|---|
class |
ModuleClassNotFoundException
If a module class could not be found
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
ModuleFactory.createModule(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor)
Creates the module instance.
|
<T> T |
HostContainerLegacyAdaptor.createModule(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor) |
<T> T |
LegacyModuleFactory.createModule(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor) |
<T> T |
PrefixDelegatingModuleFactory.createModule(java.lang.String className,
ModuleDescriptor<T> moduleDescriptor) |
<T> T |
ClassPrefixModuleFactory.createModule(java.lang.String name,
ModuleDescriptor<T> moduleDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
Plugin |
DescriptorParser.configurePlugin(ModuleDescriptorFactory moduleDescriptorFactory,
Plugin plugin)
Sets the configuration on the plugin argument to match the configuration specified in the
plugin descriptor (typically an XML file).
|
Plugin |
XmlDescriptorParser.configurePlugin(ModuleDescriptorFactory moduleDescriptorFactory,
Plugin plugin) |
protected static org.dom4j.Document |
XmlDescriptorParser.createDocument(java.io.InputStream source) |
protected ModuleDescriptor<?> |
XmlDescriptorParser.createModuleDescriptor(Plugin plugin,
org.dom4j.Element element,
ModuleDescriptorFactory moduleDescriptorFactory) |
DescriptorParser |
DescriptorParserFactory.getInstance(java.io.InputStream source,
java.util.Set<Application> applications)
Creates a new
DescriptorParser for getting plugin descriptor information
from the provided source data. |
DescriptorParser |
XmlDescriptorParserFactory.getInstance(java.io.InputStream source,
java.util.Set<Application> applications) |
| Constructor and Description |
|---|
XmlDescriptorParser(org.dom4j.Document source,
java.util.Set<Application> applications)
Constructs a parser with an already-constructed document
|
XmlDescriptorParser(java.io.InputStream source,
java.util.Set<Application> applications)
Constructs a parser with a stream of an XML document for a specific application
|
| Modifier and Type | Class and Description |
|---|---|
class |
ValidationException
Exception for a validation error parsing DOM4J nodes
|
Copyright © 2013 Atlassian. All Rights Reserved.