org.ops4j.pax.exam.options
Interface ProvisionControl<T extends ProvisionControl>

All Known Subinterfaces:
ProvisionOption<T>
All Known Implementing Classes:
AbstractDelegateProvisionOption, AbstractProvisionControl, AbstractProvisionOption, AbstractUrlProvisionOption, MavenArtifactProvisionOption, UrlProvisionOption, WrappedUrlProvisionOption

public interface ProvisionControl<T extends ProvisionControl>

Provision control options.

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

Method Summary
 Integer getStartLevel()
          The start level for the provisioned bundle(s).
 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.
 

Method Detail

shouldUpdate

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.

shouldStart

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.

getStartLevel

Integer getStartLevel()
The start level for the provisioned bundle(s).

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

update

T update(Boolean shouldUpdate)
Setter.

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

update

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

Returns:
itself, for fluent api usage

noUpdate

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

Returns:
itself, for fluent api usage

start

T start(Boolean shouldStart)
Setter.

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

start

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

Returns:
itself, for fluent api usage

noStart

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

Returns:
itself, for fluent api usage

startLevel

T startLevel(Integer startLevel)
Setter.

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


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