Package com.atlassian.plugin
Class DefaultPluginArtifactFactory
java.lang.Object
com.atlassian.plugin.DefaultPluginArtifactFactory
- All Implemented Interfaces:
PluginArtifactFactory
Creates plugin artifacts by handling URI's that are files and looking at the file's extension
- Since:
- 2.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a factory which produces artifacts that do not allow reference installation.DefaultPluginArtifactFactory(ReferenceMode referenceMode) Create a factory which produces artifacts that optionally allow reference installation. -
Method Summary
Modifier and TypeMethodDescriptionCreates the artifact by looking at the file extension
-
Constructor Details
-
DefaultPluginArtifactFactory
public DefaultPluginArtifactFactory()Create a factory which produces artifacts that do not allow reference installation. -
DefaultPluginArtifactFactory
Create a factory which produces artifacts that optionally allow reference installation.- Parameters:
referenceMode- theReferenceModepassed toJarPluginArtifactinstances created by this factory.
-
-
Method Details
-
create
Creates the artifact by looking at the file extension- Specified by:
createin interfacePluginArtifactFactory- Parameters:
artifactUri- The artifact URI- Returns:
- The created artifact
- Throws:
IllegalArgumentException- If an artifact cannot be created from the URL
-