|
||||||||||
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. |
java.lang.Integer |
getStartLevel()
The start level for the provisioned bundle(s). |
java.lang.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(java.lang.Boolean shouldStart)
Setter. |
T |
startLevel(java.lang.Integer startLevel)
Setter. |
T |
update()
Setter. |
T |
update(java.lang.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)
java.lang.IllegalArgumentException
- - If delegate is nullMethod Detail |
---|
public java.lang.String getURL()
getURL
in interface UrlReference
public boolean shouldUpdate()
shouldUpdate
in interface ProvisionControl<T extends AbstractDelegateProvisionOption>
public boolean shouldStart()
shouldStart
in interface ProvisionControl<T extends AbstractDelegateProvisionOption>
public java.lang.Integer getStartLevel()
getStartLevel
in interface ProvisionControl<T extends AbstractDelegateProvisionOption>
public T update(java.lang.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(java.lang.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(java.lang.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 |