public class

DefaultPluginArtifactFactory

extends Object
implements PluginArtifactFactory
java.lang.Object
   ↳ com.atlassian.plugin.DefaultPluginArtifactFactory

Class Overview

Creates plugin artifacts by handling URI's that are files and looking at the file's extension

Summary

Public Constructors
DefaultPluginArtifactFactory()
Public Methods
PluginArtifact create(URI artifactUri)
Creates the artifact by looking at the file extension
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.PluginArtifactFactory

Public Constructors

public DefaultPluginArtifactFactory ()

Public Methods

public PluginArtifact create (URI artifactUri)

Creates the artifact by looking at the file extension

Parameters
artifactUri The artifact URI
Returns
  • The created artifact
Throws
IllegalArgumentException If an artifact cannot be created from the URL