org.ops4j.pax.exam.options
Class BootClasspathLibraryOption

java.lang.Object
  extended by org.ops4j.pax.exam.options.BootClasspathLibraryOption
All Implemented Interfaces:
Option

public class BootClasspathLibraryOption
extends Object
implements Option

Option specifying a library that will be made available in teh boot classpath.

Since:
0.5.0, April 29, 2009
Author:
Alin Dreghiciu (adreghiciu@gmail.com)

Constructor Summary
BootClasspathLibraryOption(String libraryUrl)
          Constructor.
BootClasspathLibraryOption(UrlReference libraryUrl)
          Constructor.
 
Method Summary
 BootClasspathLibraryOption afterFramework()
          To be used to specify that this library should be in the classpath after framework library.
 BootClasspathLibraryOption beforeFramework()
          To be used to specify that this library should be in the classpath before framework library.
 UrlReference getLibraryUrl()
          Getter.
 boolean isAfterFramework()
          Getter.
 boolean isBeforeFramework()
          Getter.
protected  BootClasspathLibraryOption itself()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BootClasspathLibraryOption

public BootClasspathLibraryOption(String libraryUrl)
Constructor.

Parameters:
libraryUrl - library url (cannot be null or empty)
Throws:
IllegalArgumentException - - If url is null or empty

BootClasspathLibraryOption

public BootClasspathLibraryOption(UrlReference libraryUrl)
Constructor.

Parameters:
libraryUrl - library url (cannot be null or empty)
Throws:
IllegalArgumentException - - If url is null
Method Detail

beforeFramework

public BootClasspathLibraryOption beforeFramework()
To be used to specify that this library should be in the classpath before framework library.

Returns:
itself, for fluent api usage

afterFramework

public BootClasspathLibraryOption afterFramework()
To be used to specify that this library should be in the classpath after framework library.

Returns:
itself, for fluent api usage

getLibraryUrl

public UrlReference getLibraryUrl()
Getter.

Returns:
library url

isBeforeFramework

public boolean isBeforeFramework()
Getter.

Returns:
true if the library should be before framework library in the classpath.

isAfterFramework

public boolean isAfterFramework()
Getter.

Returns:
true if the library should be after framework library in the classpath.

toString

public String toString()

Overrides:
toString in class Object

itself

protected BootClasspathLibraryOption itself()



Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.