public class

MavenArtifactDeploymentOption

extends UrlDeploymentOption
implements MavenUrlReference
java.lang.Object
   ↳ org.ops4j.pax.exam.options.UrlDeploymentOption
     ↳ org.ops4j.pax.exam.options.MavenArtifactDeploymentOption

Summary

Public Constructors
MavenArtifactDeploymentOption()
MavenArtifactDeploymentOption(MavenUrlReference artifact)
Public Methods
MavenArtifactDeploymentOption artifactId(String artifactId)
Sets the artifact id.
MavenArtifactDeploymentOption classifier(String classifier)
Sets the artifact classifier.
boolean equals(Object obj)
String getURL()
Getter.
MavenArtifactDeploymentOption groupId(String groupId)
Sets the artifact group id.
int hashCode()
Boolean isSnapshot()
Returns true if the specified version is a snapshot version, false if not and null if the version is not yet specified.
MavenArtifactDeploymentOption type(String type)
Sets the artifact type.
MavenArtifactDeploymentOption version(MavenUrlReference.VersionResolver resolver)
Determines the artifact version using an MavenUrlReference.VersionResolver.
MavenArtifactDeploymentOption version(String version)
Sets the artifact version or version range.
MavenArtifactDeploymentOption versionAsInProject()
Version will be discovered from the dependencies of Maven project that includes the regression.
[Expand]
Inherited Methods
From class org.ops4j.pax.exam.options.UrlDeploymentOption
From class java.lang.Object
From interface org.ops4j.pax.exam.options.MavenUrlReference
From interface org.ops4j.pax.exam.options.UrlReference

Public Constructors

public MavenArtifactDeploymentOption ()

public MavenArtifactDeploymentOption (MavenUrlReference artifact)

Public Methods

public MavenArtifactDeploymentOption artifactId (String artifactId)

Sets the artifact id.

Parameters
artifactId artifact id (cannot be null or empty)
Returns
  • itself, for fluent api usage

public MavenArtifactDeploymentOption classifier (String classifier)

Sets the artifact classifier.

Parameters
classifier artifact classifier (cannot be null or empty)
Returns
  • itself, for fluent api usage

public boolean equals (Object obj)

public String getURL ()

Getter.

Returns
  • url (cannot be null)

public MavenArtifactDeploymentOption groupId (String groupId)

Sets the artifact group id.

Parameters
groupId artifact group id (cannot be null or empty)
Returns
  • itself, for fluent api usage

public int hashCode ()

public Boolean isSnapshot ()

Returns true if the specified version is a snapshot version, false if not and null if the version is not yet specified.

Returns
  • true if the specified version is a snapshot version, false if not and null if the version is not yet specified.

public MavenArtifactDeploymentOption type (String type)

Sets the artifact type. Do not set the value (use this method) if default artifact type should be used.

Parameters
type artifact type (cannot be null or empty)
Returns
  • itself, for fluent api usage

public MavenArtifactDeploymentOption version (MavenUrlReference.VersionResolver resolver)

Determines the artifact version using an MavenUrlReference.VersionResolver.

Parameters
resolver a MavenUrlReference.VersionResolver (cannot be null)
Returns
  • itself, for fluent api usage

public MavenArtifactDeploymentOption version (String version)

Sets the artifact version or version range. If version is a SNAPSHOT version the bundle will be set to updatable, otherwise the bundle will not be updated. This handling happens only if the user dows not use the update() by itself (see org.ops4j.pax.exam.options.ProvisionOption#update(boolean)).

Parameters
version artifact version / version range (cannot be null or empty)
Returns
  • itself, for fluent api usage

public MavenArtifactDeploymentOption versionAsInProject ()

Version will be discovered from the dependencies of Maven project that includes the regression.

Returns
  • itself, for fluent api usage