public final class OsgiPluginFactory extends AbstractPluginFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
OsgiPluginFactory.DefaultPluginTransformerFactory |
static interface |
OsgiPluginFactory.PluginTransformerFactory |
descriptorParserFactory| Constructor and Description |
|---|
OsgiPluginFactory(String pluginDescriptorFileName,
Set<Application> applications,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
com.atlassian.plugin.event.PluginEventManager pluginEventManager)
Default constructor
|
OsgiPluginFactory(String pluginDescriptorFileName,
Set<Application> applications,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
com.atlassian.plugin.event.PluginEventManager pluginEventManager,
OsgiPluginFactory.PluginTransformerFactory pluginTransformerFactory)
Constructor for implementations that want to override the DefaultPluginTransformer with a custom implementation
|
| Modifier and Type | Method and Description |
|---|---|
String |
canCreate(PluginArtifact pluginArtifact) |
Plugin |
create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin artifact.
|
ModuleDescriptor<?> |
createModule(Plugin plugin,
org.dom4j.Element module,
ModuleDescriptorFactory moduleDescriptorFactory) |
protected InputStream |
getDescriptorInputStream(PluginArtifact pluginArtifact) |
protected com.google.common.base.Predicate<Integer> |
isValidPluginsVersion() |
create, getPluginKeyFromDescriptor, hasDescriptorpublic OsgiPluginFactory(String pluginDescriptorFileName, Set<Application> applications, OsgiPersistentCache persistentCache, OsgiContainerManager osgi, com.atlassian.plugin.event.PluginEventManager pluginEventManager)
public OsgiPluginFactory(String pluginDescriptorFileName, Set<Application> applications, OsgiPersistentCache persistentCache, OsgiContainerManager osgi, com.atlassian.plugin.event.PluginEventManager pluginEventManager, OsgiPluginFactory.PluginTransformerFactory pluginTransformerFactory)
public String canCreate(PluginArtifact pluginArtifact) throws PluginParseException
canCreate in interface PluginFactorycanCreate in class AbstractPluginFactoryPluginParseExceptionprotected InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
getDescriptorInputStream in class AbstractPluginFactoryprotected com.google.common.base.Predicate<Integer> isValidPluginsVersion()
isValidPluginsVersion in class AbstractPluginFactorypublic Plugin create(PluginArtifact pluginArtifact, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
pluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - The factory for plugin modulesPluginParseException - If the descriptor cannot be parsedIllegalArgumentException - If the plugin descriptor isn't found, and the plugin key and bundle version aren't
specified in the manifestpublic ModuleDescriptor<?> createModule(Plugin plugin, org.dom4j.Element module, ModuleDescriptorFactory moduleDescriptorFactory)
Copyright © 2018 Atlassian. All rights reserved.