public interface PluginFactory
| Modifier and Type | Method and Description |
|---|---|
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 by instantiating the plugin and configuring it.
|
String canCreate(PluginArtifact pluginArtifact) throws PluginParseException
pluginArtifact - The artifact to testPluginParseException - If there are exceptions parsing the plugin configuration when
the deployer should have been able to deploy the pluginPlugin create(DeploymentUnit deploymentUnit, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
create(PluginArtifact,ModuleDescriptorFactory) insteadcanCreate(PluginArtifact) call returned the plugin keydeploymentUnit - the unit to deploymoduleDescriptorFactory - the factory for the module descriptorsPluginParseException - if the plugin could not be parsedPlugin create(PluginArtifact pluginArtifact, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
canCreate(PluginArtifact) call returned the plugin keypluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - the factory for the module descriptorsPluginParseException - if the plugin could not be parsedCopyright © 2014 Atlassian. All rights reserved.