com.atlassian.plugin
Class DefaultPluginArtifactFactory
java.lang.Object
com.atlassian.plugin.DefaultPluginArtifactFactory
- All Implemented Interfaces:
- PluginArtifactFactory
public class DefaultPluginArtifactFactory
- extends Object
- implements PluginArtifactFactory
Creates plugin artifacts by handling URI's that are files and looking at the file's extension
- Since:
- 2.1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPluginArtifactFactory
public DefaultPluginArtifactFactory()
create
public PluginArtifact create(URI artifactUri)
- Creates the artifact by looking at the file extension
- Specified by:
create in interface PluginArtifactFactory
- Parameters:
artifactUri - The artifact URI
- Returns:
- The created artifact
- Throws:
IllegalArgumentException - If an artifact cannot be created from the URL
Copyright © 2011 Atlassian. All Rights Reserved.