public class DefaultPluginArtifactFactory extends Object implements PluginArtifactFactory
| Constructor and Description |
|---|
DefaultPluginArtifactFactory()
Create a factory which produces artifacts that do not allow reference installation.
|
DefaultPluginArtifactFactory(PluginArtifact.AllowsReference.ReferenceMode referenceMode)
Deprecated.
since 4.0.0, to be removed in 5.0.0: Use
DefaultPluginArtifactFactory(ReferenceMode) which uses the non
legacy ReferenceMode. |
DefaultPluginArtifactFactory(ReferenceMode referenceMode)
Create a factory which produces artifacts that optionally allow reference installation.
|
| Modifier and Type | Method and Description |
|---|---|
PluginArtifact |
create(URI artifactUri)
Creates the artifact by looking at the file extension
|
public DefaultPluginArtifactFactory()
public DefaultPluginArtifactFactory(ReferenceMode referenceMode)
referenceMode - the ReferenceMode passed to JarPluginArtifact instances
created by this factory.public DefaultPluginArtifactFactory(PluginArtifact.AllowsReference.ReferenceMode referenceMode)
DefaultPluginArtifactFactory(ReferenceMode) which uses the non
legacy ReferenceMode.referenceMode - the legacy PluginArtifact.AllowsReference.ReferenceMode whose
modern equivalent ReferenceMode is passed to JarPluginArtifact instances created by this factory.public PluginArtifact create(URI artifactUri)
create in interface PluginArtifactFactoryartifactUri - The artifact URIIllegalArgumentException - If an artifact cannot be created from the URLCopyright © 2018 Atlassian. All rights reserved.