public abstract class AbstractPluginFactory extends Object implements PluginFactory
| Modifier and Type | Field and Description |
|---|---|
protected Set<Application> |
applications |
protected DescriptorParserFactory |
descriptorParserFactory |
protected org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPluginFactory(DescriptorParserFactory descriptorParserFactory,
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(DeploymentUnit deploymentUnit,
ModuleDescriptorFactory moduleDescriptorFactory)
Deprecated.
|
protected abstract InputStream |
getDescriptorInputStream(PluginArtifact pluginArtifact) |
protected String |
getPluginKeyFromDescriptor(PluginArtifact pluginArtifact) |
protected boolean |
hasDescriptor(PluginArtifact pluginArtifact) |
protected abstract com.google.common.base.Predicate<Integer> |
isValidPluginsVersion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateprotected final org.slf4j.Logger log
protected final DescriptorParserFactory descriptorParserFactory
protected final Set<Application> applications
protected AbstractPluginFactory(DescriptorParserFactory descriptorParserFactory, Set<Application> applications)
public String canCreate(PluginArtifact pluginArtifact) throws PluginParseException
canCreate in interface PluginFactorypluginArtifact - The artifact to testPluginParseException - If there are exceptions parsing the plugin configuration@Deprecated public final Plugin create(DeploymentUnit deploymentUnit, ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException
PluginFactory.create(com.atlassian.plugin.PluginArtifact, com.atlassian.plugin.ModuleDescriptorFactory) insteadPluginFactoryPluginFactory.canCreate(PluginArtifact) call returned the plugin keycreate in interface PluginFactorydeploymentUnit - the unit to deploymoduleDescriptorFactory - the factory for the module descriptorsPluginParseException - if the plugin could not be parsedprotected final boolean hasDescriptor(PluginArtifact pluginArtifact)
protected final String getPluginKeyFromDescriptor(PluginArtifact pluginArtifact)
protected abstract InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
protected abstract com.google.common.base.Predicate<Integer> isValidPluginsVersion()
Copyright © 2014 Atlassian. All rights reserved.