public class

ProfileOption

extends Object
implements Option
java.lang.Object
   ↳ org.ops4j.pax.exam.options.extra.ProfileOption

This class is deprecated.
Only supported by Pax Runner Container which will be removed in Pax Exam 3.0.

Class Overview

Option specifying a Pax runner provisioning profile.

Summary

Public Constructors
ProfileOption(String name)
Constructor.
ProfileOption(String name, String version)
Constructor.
Public Methods
String getProfile()
Getter.
String toString()
ProfileOption version(String version)
Sets the profile version or version range.
ProfileOption versionAsInProject()
Discovers the profile version out of the project.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProfileOption (String name)

Constructor.

Parameters
name profile name (cannot be null or empty)
Throws
IllegalArgumentException - If name is null or empty

public ProfileOption (String name, String version)

Constructor.

Parameters
name profile name (cannot be null or empty)
version profile version (cannot be empty)
Throws
IllegalArgumentException - If name is null or empty

Public Methods

public String getProfile ()

Getter.

Returns
  • profile (cannot be null or empty)

public String toString ()

public ProfileOption version (String version)

Sets the profile version or version range. Do not set (use this method) if the latest version should be discovered and used)

Parameters
version artifact version / version range (cannot be empty)
Returns
  • itself, for fluent api usage
Throws
IllegalArgumentException - If version is empty

public ProfileOption versionAsInProject ()

Discovers the profile version out of the project. To do so, the maven project should have a dependency on the profile and Pax Exam maven plugin configured to run the "generate-depends-file" goal.

Returns
  • itself, for fluent api usage