|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlivespace.osgi.Dependency
livespace.services.osgi.SingleEntityDependency
public class SingleEntityDependency
A dependency on a single Livespace entity being available.
| Field Summary | |
|---|---|
protected EntityClient |
client
|
protected Dependencies |
dependencies
|
protected String |
entityType
|
| Fields inherited from class livespace.osgi.Dependency |
|---|
notReadyListeners, readyListeners |
| Constructor Summary | |
|---|---|
SingleEntityDependency(org.osgi.framework.BundleContext context,
String entityType)
Create a new dependency on an entity of a given type being available in the local room. |
|
| Method Summary | |
|---|---|
protected void |
elvinOrRoomNotReady()
If either the elvin or room service is not available then dispose the client and call Dependency.updateReady() |
boolean |
isReady()
True if the dependency is ready to be used. |
void |
propertyValueChanged(PropertyEvent e)
|
void |
start()
Start the dependency looking for its required resources. |
void |
stop()
Stop the dependency looking for its required resources. |
Object |
value()
Convenience method to get the resource acquired by this 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 |
| Field Detail |
|---|
protected String entityType
protected EntityClient client
protected Dependencies dependencies
| Constructor Detail |
|---|
public SingleEntityDependency(org.osgi.framework.BundleContext context,
String entityType)
| Method Detail |
|---|
public void start()
throws Exception
Dependency
start in class DependencyException
public void stop()
throws Exception
Dependency
stop in class DependencyExceptionpublic Object value()
Dependency
value in class Dependencypublic boolean isReady()
Dependency
isReady in class Dependencyprotected void elvinOrRoomNotReady()
Dependency.updateReady()
public void propertyValueChanged(PropertyEvent e)
propertyValueChanged in interface PropertyListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||