|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegistry
The ServiceRegistry interface is used by the framework to store and lookup currently registered services.
Clients may implement this interface.
Method Summary | |
---|---|
ServiceReference[] |
lookupServiceReferences(BundleContext context)
Performs a lookup for ServiceReferences that are bound to this ServiceRegistry using the specified BundleContext. |
ServiceReference[] |
lookupServiceReferences(java.lang.String clazz,
Filter filter)
Performs a lookup for ServiceReferences that are bound to this ServiceRegistry. |
void |
publishService(BundleContext context,
ServiceRegistration serviceReg)
Publishes a service to this ServiceRegistry. |
void |
unpublishService(BundleContext context,
ServiceRegistration serviceReg)
Unpublishes a service from this ServiceRegistry |
void |
unpublishServices(BundleContext context)
Unpublishes all services from this ServiceRegistry that the specified BundleContext registered. |
Method Detail |
---|
void publishService(BundleContext context, ServiceRegistration serviceReg)
context
- the BundleContext that registered the service.serviceReg
- the ServiceRegistration to register.void unpublishService(BundleContext context, ServiceRegistration serviceReg)
context
- the BundleContext that registered the service.serviceReg
- the ServiceRegistration to unpublish.void unpublishServices(BundleContext context)
context
- the BundleContext to unpublish all services for.ServiceReference[] lookupServiceReferences(java.lang.String clazz, Filter filter)
clazz
- A fully qualified class name. All ServiceReferences that
reference an object that implement this class are returned. May be
null.filter
- Used to match against published Services. All
ServiceReferences that match the filter are returned. If a clazz is
specified then all ServiceReferences that match the clazz and the
filter parameter are returned. May be null.
ServiceReference[] lookupServiceReferences(BundleContext context)
context
- The BundleContext to lookup the ServiceReferences on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |