public abstract class AbstractPluginFactory extends java.lang.Object implements PluginFactory
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<Application> |
applications |
protected DescriptorParserFactory |
descriptorParserFactory |
protected org.slf4j.Logger |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPluginFactory(DescriptorParserFactory descriptorParserFactory,
java.util.Set<Application> applications) |
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
|
protected abstract java.io.InputStream |
getDescriptorInputStream(PluginArtifact pluginArtifact) |
protected java.lang.String |
getPluginKeyFromDescriptor(PluginArtifact pluginArtifact) |
protected boolean |
hasDescriptor(PluginArtifact pluginArtifact) |
protected abstract com.google.common.base.Predicate<java.lang.Integer> |
isValidPluginsVersion() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateprotected final org.slf4j.Logger log
protected final DescriptorParserFactory descriptorParserFactory
protected final java.util.Set<Application> applications
protected AbstractPluginFactory(DescriptorParserFactory descriptorParserFactory, java.util.Set<Application> applications)
public java.lang.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 java.lang.String getPluginKeyFromDescriptor(PluginArtifact pluginArtifact)
protected abstract java.io.InputStream getDescriptorInputStream(PluginArtifact pluginArtifact)
protected abstract com.google.common.base.Predicate<java.lang.Integer> isValidPluginsVersion()
Copyright © 2013 Atlassian. All Rights Reserved.