public abstract class

AbstractDelegateProvisionOption

extends Object
implements ProvisionOption<T extends ProvisionOption>
java.lang.Object
   ↳ org.ops4j.pax.exam.options.AbstractDelegateProvisionOption<T extends org.ops4j.pax.exam.options.AbstractDelegateProvisionOption>
Known Direct Subclasses

Class Overview

Abstract ProvisionOption that delegates to another provision option.

Summary

Protected Constructors
AbstractDelegateProvisionOption(ProvisionOption delegate)
Constructor.
Public Methods
ProvisionOption getDelegate()
Getter.
Integer getStartLevel()
The start level for the provisioned bundle(s).
String getURL()
Getter.
T noStart()
Setter.
T noUpdate()
Setter.
boolean shouldStart()
If the provisioned bundle(s) should be started.
boolean shouldUpdate()
If the provisioned bundle(s) should be updated (re-downloaded).
T start()
Setter.
T start(Boolean shouldStart)
Setter.
T startLevel(Integer startLevel)
Setter.
T update()
Setter.
T update(Boolean shouldUpdate)
Setter.
Protected Methods
abstract T itself()
Implemented by sub classes in order to return itself (this) for fluent api usage
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.ops4j.pax.exam.options.ProvisionControl
From interface org.ops4j.pax.exam.options.UrlReference

Protected Constructors

protected AbstractDelegateProvisionOption (ProvisionOption delegate)

Constructor.

Parameters
delegate wrapped provision option (cannot be null)
Throws
IllegalArgumentException - If delegate is null

Public Methods

public ProvisionOption getDelegate ()

Getter.

Returns
  • wrapped provision option (cannot be null)

public Integer getStartLevel ()

The start level for the provisioned bundle(s).

Returns
  • start level. If the returned value is null, default behavior will be used

public String getURL ()

Getter.

Returns
  • url (cannot be null)

public T noStart ()

Setter. Specifyies that the provisioned bundle(s) should not be started.

Returns
  • itself, for fluent api usage

public T noUpdate ()

Setter. Specifyies that the provisioned bundle(s) should not be updated.

Returns
  • itself, for fluent api usage

public boolean shouldStart ()

If the provisioned bundle(s) should be started. By default bundles should be started.

Returns
  • true if the bundle(s) should be started, false otherwise.

public boolean shouldUpdate ()

If the provisioned bundle(s) should be updated (re-downloaded). By default bundles should be updated.

Returns
  • true if the bundle(s) should be updated, false otherwise.

public T start ()

Setter. Specifyies that the provisioned bundle(s) should be started.

Returns
  • itself, for fluent api usage

public T start (Boolean shouldStart)

Setter.

Parameters
shouldStart true if the provisioned bundle(s) should be started, false otherwise
Returns
  • itself, for fluent api usage

public T startLevel (Integer startLevel)

Setter.

Parameters
startLevel start level of the provisioned bundle(s)
Returns
  • itself, for fluent api usage

public T update ()

Setter. Specifyies that the provisioned bundle(s) should be updated.

Returns
  • itself, for fluent api usage

public T update (Boolean shouldUpdate)

Setter.

Parameters
shouldUpdate true if the provisioned bundle(s) should be updated, false otherwise
Returns
  • itself, for fluent api usage

Protected Methods

protected abstract T itself ()

Implemented by sub classes in order to return itself (this) for fluent api usage

Returns
  • itself