com.atlassian.plugin.factories
Class XmlDynamicPluginFactory
java.lang.Object
com.atlassian.plugin.factories.AbstractPluginFactory
com.atlassian.plugin.factories.XmlDynamicPluginFactory
- All Implemented Interfaces:
- PluginFactory
public final class XmlDynamicPluginFactory
- extends AbstractPluginFactory
Deploys plugins that consist of an XML descriptor file.
- Since:
- 2.1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlDynamicPluginFactory
public XmlDynamicPluginFactory(Application application)
- Parameters:
application - The application key to use to choose modules- Since:
- 2.14
XmlDynamicPluginFactory
public XmlDynamicPluginFactory(java.util.Set<Application> applications)
- Parameters:
applications - The application key to use to choose modules- Since:
- 2.14
getDescriptorInputStream
protected java.io.InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
- Specified by:
getDescriptorInputStream in class AbstractPluginFactory
isValidPluginsVersion
protected com.google.common.base.Predicate<java.lang.Integer> isValidPluginsVersion()
- Specified by:
isValidPluginsVersion in class AbstractPluginFactory
create
public Plugin create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
throws PluginParseException
- Deploys the plugin artifact
- Parameters:
pluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - The factory for plugin modules
- Returns:
- The instantiated and populated plugin
- Throws:
PluginParseException - If the descriptor cannot be parsed- Since:
- 2.2.0
Copyright © 2012 Atlassian. All Rights Reserved.