|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.factories.LegacyDynamicPluginFactory
public class LegacyDynamicPluginFactory
Deploys version 1.0 plugins into the legacy custom classloader structure that gives each plugin its own classloader.
| Constructor Summary | |
|---|---|
LegacyDynamicPluginFactory(java.lang.String pluginDescriptorFileName)
|
|
LegacyDynamicPluginFactory(java.lang.String pluginDescriptorFileName,
java.io.File tempDirectory)
|
|
| Method Summary | |
|---|---|
java.lang.String |
canCreate(PluginArtifact pluginArtifact)
Determines if this deployer can handle this artifact by looking for the plugin descriptor |
Plugin |
create(DeploymentUnit deploymentUnit,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin jar |
protected DynamicPlugin |
createPlugin(DeploymentUnit deploymentUnit,
PluginClassLoader loader)
Creates the plugin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LegacyDynamicPluginFactory(java.lang.String pluginDescriptorFileName)
public LegacyDynamicPluginFactory(java.lang.String pluginDescriptorFileName,
java.io.File tempDirectory)
| Method Detail |
|---|
public Plugin create(DeploymentUnit deploymentUnit,
ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
create in interface PluginFactorydeploymentUnit - the jar to deploymoduleDescriptorFactory - The factory for plugin modules
PluginParseException - If the descriptor cannot be parsed
protected DynamicPlugin createPlugin(DeploymentUnit deploymentUnit,
PluginClassLoader loader)
deploymentUnit - The deployment unitloader - The plugin loader
public java.lang.String canCreate(PluginArtifact pluginArtifact)
throws PluginParseException
canCreate in interface PluginFactorypluginArtifact - The artifact to test
PluginParseException - If there are exceptions parsing the plugin configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||