|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.osgi.factory.UnloadableStaticPluginFactory
public class UnloadableStaticPluginFactory
Creates unloadable plugins from static plugins. Used to handle when a static plugin (version 1) is deployed
to a directory that only accepts OSGi plugins. This should be placed last in the chain of plugin factories and
only if LegacyDynamicPluginFactory is not used.
| Constructor Summary | |
|---|---|
UnloadableStaticPluginFactory(java.lang.String pluginDescriptorFileName)
|
|
| Method Summary | |
|---|---|
java.lang.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)
Creates an unloadable plugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnloadableStaticPluginFactory(java.lang.String pluginDescriptorFileName)
| Method Detail |
|---|
public java.lang.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||