|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.exam.options.AbstractDelegateProvisionOption<T>
public abstract class AbstractDelegateProvisionOption<T extends AbstractDelegateProvisionOption>
Abstract ProvisionOption that delegates to another provision option.
| Constructor Summary | |
|---|---|
protected |
AbstractDelegateProvisionOption(ProvisionOption delegate)
Constructor. |
| Method Summary | |
|---|---|
ProvisionOption |
getDelegate()
Getter. |
Integer |
getStartLevel()
The start level for the provisioned bundle(s). |
String |
getURL()
Getter. |
protected abstract T |
itself()
Implemented by sub classes in order to return itself (this) for fluent api usage |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractDelegateProvisionOption(ProvisionOption delegate)
delegate - wrapped provision option (cannot be null)
IllegalArgumentException - - If delegate is null| Method Detail |
|---|
public String getURL()
getURL in interface UrlReferencepublic boolean shouldUpdate()
shouldUpdate in interface ProvisionControl<T extends AbstractDelegateProvisionOption>public boolean shouldStart()
shouldStart in interface ProvisionControl<T extends AbstractDelegateProvisionOption>public Integer getStartLevel()
getStartLevel in interface ProvisionControl<T extends AbstractDelegateProvisionOption>public T update(Boolean shouldUpdate)
update in interface ProvisionControl<T extends AbstractDelegateProvisionOption>shouldUpdate - true if the provisioned bundle(s) should be updated, false otherwise
public T update()
update in interface ProvisionControl<T extends AbstractDelegateProvisionOption>public T noUpdate()
noUpdate in interface ProvisionControl<T extends AbstractDelegateProvisionOption>public T start(Boolean shouldStart)
start in interface ProvisionControl<T extends AbstractDelegateProvisionOption>shouldStart - true if the provisioned bundle(s) should be started, false otherwise
public T start()
start in interface ProvisionControl<T extends AbstractDelegateProvisionOption>public T noStart()
noStart in interface ProvisionControl<T extends AbstractDelegateProvisionOption>public T startLevel(Integer startLevel)
startLevel in interface ProvisionControl<T extends AbstractDelegateProvisionOption>startLevel - start level of the provisioned bundle(s)
public ProvisionOption getDelegate()
protected abstract T itself()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||