|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object livespace.osgi.Dependency livespace.osgi.ServiceDependency
public class ServiceDependency
A dependency on an OSGi service.
Field Summary |
---|
Fields inherited from class livespace.osgi.Dependency |
---|
notReadyListeners, readyListeners |
Constructor Summary | |
---|---|
ServiceDependency(org.osgi.framework.BundleContext context,
Class<?> serviceType)
|
|
ServiceDependency(org.osgi.framework.BundleContext context,
Class<?> serviceType,
String otherFilter)
|
|
ServiceDependency(org.osgi.framework.BundleContext context,
String serviceName)
Create a dependency on a named OSGI service. |
|
ServiceDependency(org.osgi.framework.BundleContext context,
String serviceName,
String otherFilter)
|
Method Summary | |
---|---|
boolean |
isReady()
True if the dependency is ready to be used. |
void |
serviceStarted(org.osgi.framework.BundleContext c,
Object newService)
|
void |
serviceStopped(org.osgi.framework.BundleContext c,
Object newService)
|
void |
start()
Start the dependency looking for its required resources. |
void |
stop()
Stop the dependency looking for its required resources. |
Object |
value()
The service instance. |
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 ServiceDependency(org.osgi.framework.BundleContext context, Class<?> serviceType)
public ServiceDependency(org.osgi.framework.BundleContext context, String serviceName)
public ServiceDependency(org.osgi.framework.BundleContext context, Class<?> serviceType, String otherFilter)
public ServiceDependency(org.osgi.framework.BundleContext context, String serviceName, String otherFilter)
Method Detail |
---|
public void start()
Dependency
start
in class Dependency
public void stop()
Dependency
stop
in class Dependency
public Object value()
value
in class Dependency
public void serviceStarted(org.osgi.framework.BundleContext c, Object newService)
public void serviceStopped(org.osgi.framework.BundleContext c, Object newService)
public boolean isReady()
Dependency
isReady
in class Dependency
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |