|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object livespace.osgi.Dependency
public abstract class Dependency
Base for class representing dependency constraints.
Field Summary | |
---|---|
Delegates |
notReadyListeners
Delegates that are invoked when this dependency stops being ready. |
Delegates |
readyListeners
Delegates that are invoked when this dependency becomes ready. |
Constructor Summary | |
---|---|
Dependency()
|
Method Summary | |
---|---|
abstract boolean |
isReady()
True if the dependency is ready to be used. |
protected void |
setReady(boolean newValue)
Force the ready state to change and fires an event if needed. |
abstract void |
start()
Start the dependency looking for its required resources. |
abstract void |
stop()
Stop the dependency looking for its required resources. |
void |
updateReady()
Update the ready flag with the current value of isReady() |
abstract Object |
value()
Convenience method to get the resource acquired by this dependency. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Delegates readyListeners
public final Delegates notReadyListeners
Constructor Detail |
---|
public Dependency()
Method Detail |
---|
public void updateReady()
isReady()
isReady()
,
setReady(boolean)
protected void setReady(boolean newValue)
updateReady()
instead.
public abstract boolean isReady()
public abstract void start() throws Exception
Exception
public abstract void stop() throws Exception
Exception
public abstract Object value() throws UnsupportedOperationException
UnsupportedOperationException
- if this call is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |