public final class OsgiBundleFactory extends AbstractPluginFactory
applications, descriptorParserFactory| Constructor and Description |
|---|
OsgiBundleFactory(OsgiContainerManager osgi,
PluginEventManager pluginEventManager) |
OsgiBundleFactory(String pluginDescriptorFileName,
OsgiContainerManager osgi,
PluginEventManager pluginEventManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
canCreate(PluginArtifact pluginArtifact)
Determines if this deployer can handle this artifact by looking for the plugin descriptor
|
Plugin |
create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin artifact
|
protected InputStream |
getDescriptorInputStream(PluginArtifact pluginArtifact) |
protected com.google.common.base.Predicate<Integer> |
isValidPluginsVersion() |
create, getPluginKeyFromDescriptor, hasDescriptorpublic OsgiBundleFactory(OsgiContainerManager osgi, PluginEventManager pluginEventManager)
public OsgiBundleFactory(String pluginDescriptorFileName, OsgiContainerManager osgi, PluginEventManager pluginEventManager)
protected InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
getDescriptorInputStream in class AbstractPluginFactoryprotected com.google.common.base.Predicate<Integer> isValidPluginsVersion()
isValidPluginsVersion in class AbstractPluginFactorypublic String canCreate(PluginArtifact pluginArtifact) throws PluginParseException
AbstractPluginFactorycanCreate in interface PluginFactorycanCreate in class AbstractPluginFactorypluginArtifact - The artifact to testPluginParseException - If there are exceptions parsing the plugin configuration when
the deployer should have been able to deploy the pluginpublic Plugin create(PluginArtifact pluginArtifact, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
pluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - The factory for plugin modulesPluginParseException - If the descriptor cannot be parsedCopyright © 2014 Atlassian. All rights reserved.