|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlivespace.osgi.Dependency
livespace.osgi.Dependencies
public class Dependencies
Represents zero or more dependencies, all of which must be ready before this one is.
Field Summary |
---|
Fields inherited from class livespace.osgi.Dependency |
---|
notReadyListeners, readyListeners |
Constructor Summary | |
---|---|
Dependencies()
|
Method Summary | |
---|---|
void |
add(Dependency dependency)
Add a sub-dependency to the set. |
void |
add(Object name,
Dependency dependency)
Add a sub-dependency to the set with a given name. |
Dependency |
childNamed(String name)
|
boolean |
isReady()
True if the dependency is ready to be used. |
Iterator<Dependency> |
iterator()
Return an iterator over the dependencies. |
void |
start()
Start the dependency looking for its required resources. |
void |
stop()
Stop the dependency looking for its required resources. |
Object |
value()
Not supported. |
Object |
value(String name)
Shortcut to get the resource for a sub-dependency. |
Methods inherited from class livespace.osgi.Dependency |
---|
setReady, updateReady |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dependencies()
Method Detail |
---|
public void add(Dependency dependency)
dependency
- The dependency to add.add(Object, Dependency)
public void add(Object name, Dependency dependency)
public Iterator<Dependency> iterator()
iterator
in interface Iterable<Dependency>
public void start() throws Exception
Dependency
start
in class Dependency
Exception
public void stop() throws Exception
Dependency
stop
in class Dependency
Exception
public Object value()
value(String)
.
value
in class Dependency
public Object value(String name) throws IllegalArgumentException
name
- The sub-dependency name.
IllegalArgumentException
- if no name matches.childNamed(String)
public Dependency childNamed(String name)
public boolean isReady()
Dependency
isReady
in class Dependency
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |