com.atlassian.plugin.factories
Class XmlDynamicPluginFactory

java.lang.Object
  extended by com.atlassian.plugin.factories.XmlDynamicPluginFactory
All Implemented Interfaces:
PluginFactory

public class XmlDynamicPluginFactory
extends java.lang.Object
implements PluginFactory

Deploys plugins that consist of an XML descriptor file.

Since:
2.1.0

Constructor Summary
XmlDynamicPluginFactory()
           
 
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 XML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDynamicPluginFactory

public XmlDynamicPluginFactory()
Method Detail

create

public Plugin create(DeploymentUnit deploymentUnit,
                     ModuleDescriptorFactory moduleDescriptorFactory)
              throws PluginParseException
Deploys the plugin XML

Specified by:
create in interface PluginFactory
Parameters:
deploymentUnit - the XML file to deploy
moduleDescriptorFactory - The factory for plugin modules
Returns:
The instantiated and populated plugin
Throws:
PluginParseException - If the descriptor cannot be parsed

canCreate

public java.lang.String canCreate(PluginArtifact pluginArtifact)
                           throws PluginParseException
Determines if this deployer can handle this artifact by looking for the plugin descriptor

Specified by:
canCreate in interface PluginFactory
Parameters:
pluginArtifact - The artifact to test
Returns:
The plugin key, null if it cannot load the plugin
Throws:
PluginParseException - If there are exceptions parsing the plugin configuration


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.