|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.osgi.factory.OsgiPluginFactory
public class OsgiPluginFactory
Plugin loader that starts an OSGi container and loads plugins into it, wrapped as OSGi bundles. Supports
| Nested Class Summary | |
|---|---|
static class |
OsgiPluginFactory.DefaultPluginTransformerFactory
|
static interface |
OsgiPluginFactory.PluginTransformerFactory
|
| Constructor Summary | |
|---|---|
OsgiPluginFactory(String pluginDescriptorFileName,
Set<String> applicationKeys,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
PluginEventManager pluginEventManager)
Default constructor |
|
OsgiPluginFactory(String pluginDescriptorFileName,
Set<String> applicationKeys,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
PluginEventManager pluginEventManager,
OsgiPluginFactory.PluginTransformerFactory pluginTransformerFactory)
Constructor for implementations that want to override the DefaultPluginTransformer with a custom implementation |
|
OsgiPluginFactory(String pluginDescriptorFileName,
String applicationKey,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
PluginEventManager pluginEventManager)
Deprecated. |
|
| Method Summary | |
|---|---|
String |
canCreate(PluginArtifact pluginArtifact)
Determines if this factory can handle this artifact. |
Plugin |
create(DeploymentUnit deploymentUnit,
ModuleDescriptorFactory moduleDescriptorFactory)
Deprecated. Since 2.2.0, use create(PluginArtifact,ModuleDescriptorFactory) instead |
Plugin |
create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin artifact |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsgiPluginFactory(String pluginDescriptorFileName,
String applicationKey,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
PluginEventManager pluginEventManager)
public OsgiPluginFactory(String pluginDescriptorFileName,
Set<String> applicationKeys,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
PluginEventManager pluginEventManager)
public OsgiPluginFactory(String pluginDescriptorFileName,
Set<String> applicationKeys,
OsgiPersistentCache persistentCache,
OsgiContainerManager osgi,
PluginEventManager pluginEventManager,
OsgiPluginFactory.PluginTransformerFactory pluginTransformerFactory)
| Method Detail |
|---|
public String canCreate(PluginArtifact pluginArtifact)
throws PluginParseException
PluginFactory
canCreate in interface PluginFactorypluginArtifact - The artifact to test
PluginParseException - If there are exceptions parsing the plugin configuration when
the deployer should have been able to deploy the plugin
public Plugin create(DeploymentUnit deploymentUnit,
ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
create(PluginArtifact,ModuleDescriptorFactory) instead
PluginFactoryPluginFactory.canCreate(PluginArtifact) call returned the plugin key
create in interface PluginFactorydeploymentUnit - the unit to deploymoduleDescriptorFactory - the factory for the module descriptors
PluginParseException - if the plugin could not be parsed
public Plugin create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
create in interface PluginFactorypluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - The factory for plugin modules
PluginParseException - If the descriptor cannot be parsed
IllegalArgumentException - If the plugin descriptor isn't found, and the plugin key and bundle version aren't
specified in the manifest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||