Package com.atlassian.plugin.factories
Class AbstractPluginFactory
java.lang.Object
com.atlassian.plugin.factories.AbstractPluginFactory
- All Implemented Interfaces:
PluginFactory
- Direct Known Subclasses:
LegacyDynamicPluginFactory,XmlDynamicPluginFactory
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<Application>protected final DescriptorParserFactory -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPluginFactory(DescriptorParserFactory descriptorParserFactory, Set<Application> applications) -
Method Summary
Modifier and TypeMethodDescriptioncanCreate(PluginArtifact pluginArtifact) Determines if this deployer can handle this artifact by looking for the plugin descriptorprotected abstract InputStreamgetDescriptorInputStream(PluginArtifact pluginArtifact) protected final StringgetPluginKeyFromDescriptor(PluginArtifact pluginArtifact) protected final booleanhasDescriptor(PluginArtifact pluginArtifact) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.plugin.factories.PluginFactory
create, createModule
-
Field Details
-
descriptorParserFactory
-
applications
-
-
Constructor Details
-
AbstractPluginFactory
protected AbstractPluginFactory(DescriptorParserFactory descriptorParserFactory, Set<Application> applications)
-
-
Method Details
-
canCreate
Determines if this deployer can handle this artifact by looking for the plugin descriptor- Specified by:
canCreatein interfacePluginFactory- 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
-
hasDescriptor
-
getPluginKeyFromDescriptor
-
getDescriptorInputStream
-
isValidPluginsVersion
-