public final class XmlDynamicPluginFactory extends AbstractPluginFactory
applications, descriptorParserFactory| Constructor and Description |
|---|
XmlDynamicPluginFactory(Application application) |
XmlDynamicPluginFactory(Set<Application> applications) |
| Modifier and Type | Method and Description |
|---|---|
String |
canCreate(PluginArtifact pluginArtifact)
Determines if this deployer can handle this artifact by looking for the plugin descriptor
|
Plugin |
create(PluginArtifact pluginArtifact,
ModuleDescriptorFactory moduleDescriptorFactory)
Deploys the plugin artifact
|
ModuleDescriptor<?> |
createModule(Plugin plugin,
org.dom4j.Element module,
ModuleDescriptorFactory moduleDescriptorFactory) |
protected InputStream |
getDescriptorInputStream(PluginArtifact pluginArtifact) |
protected Predicate<Integer> |
isValidPluginsVersion() |
getPluginKeyFromDescriptor, hasDescriptorpublic XmlDynamicPluginFactory(Application application)
application - The application key to use to choose modulespublic XmlDynamicPluginFactory(Set<Application> applications)
applications - The application key to use to choose modulesprotected InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
getDescriptorInputStream in class AbstractPluginFactoryprotected Predicate<Integer> isValidPluginsVersion()
isValidPluginsVersion in class AbstractPluginFactorypublic String canCreate(PluginArtifact pluginArtifact) throws PluginParseException
AbstractPluginFactorycanCreate in interface PluginFactorycanCreate in class AbstractPluginFactorypluginArtifact - The artifact to testPluginParseException - If there are exceptions parsing the plugin configurationpublic Plugin create(PluginArtifact pluginArtifact, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
pluginArtifact - the plugin artifact to deploymoduleDescriptorFactory - The factory for plugin modulesPluginParseException - If the descriptor cannot be parsedpublic ModuleDescriptor<?> createModule(Plugin plugin, org.dom4j.Element module, ModuleDescriptorFactory moduleDescriptorFactory)
Copyright © 2020 Atlassian. All rights reserved.