|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.context.ServiceRegistry
public class ServiceRegistry
Internal Service Registry. This class is used for in the composition.
| Constructor Summary | |
|---|---|
ServiceRegistry(BundleContext context)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addServiceListener(ServiceListener arg0)
Add a given service listener with no filter. |
void |
addServiceListener(ServiceListener listener,
String filter)
Add a service listener with a filter. |
ServiceReference[] |
getAllServiceReferences(String clazz,
String filter)
Get all service references consistent with the given interface and filter. |
Object |
getService(ComponentInstance instance,
ServiceReference ref)
Get a service object. |
ServiceReference |
getServiceReference(String clazz)
Look for a service reference. |
ServiceReference[] |
getServiceReferences(String className,
String expr)
Get available (and accessible) service references. |
ServiceRegistration |
registerService(ComponentInstance instance,
String[] clazzes,
Object svcObj,
Dictionary dict)
Register a service. |
ServiceRegistration |
registerService(ComponentInstance instance,
String clazz,
Object svcObj,
Dictionary dict)
Register a service. |
void |
removeServiceListener(ServiceListener arg0)
Unregister a service listener. |
void |
reset()
Reset the service registry. |
void |
servicePropertiesModified(ServiceRegistrationImpl reg)
Dispatch a service properties modified event. |
boolean |
ungetService(ComponentInstance instance,
ServiceReference ref)
Unget a service. |
void |
unregisterService(ServiceRegistrationImpl reg)
Unregister a service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceRegistry(BundleContext context)
context - : bundle context.| Method Detail |
|---|
public void addServiceListener(ServiceListener arg0)
arg0 - : the service listener to add
public boolean ungetService(ComponentInstance instance,
ServiceReference ref)
instance - : instance releasing the service.ref - : released reference.
public void removeServiceListener(ServiceListener arg0)
arg0 - : the service listener to remove
public ServiceRegistration registerService(ComponentInstance instance,
String clazz,
Object svcObj,
Dictionary dict)
instance - : provider instance.clazz - : provided interface.svcObj - : service object of service factory object.dict - : service properties.
public ServiceRegistration registerService(ComponentInstance instance,
String[] clazzes,
Object svcObj,
Dictionary dict)
instance - : provider instance.clazzes - : provided interfaces.svcObj - : service object of service factory object.dict - : service properties.
public ServiceReference[] getServiceReferences(String className,
String expr)
throws InvalidSyntaxException
className - : required interfaceexpr - : LDAP filter
InvalidSyntaxException - occurs when the LDAP filter is malformed.public ServiceReference getServiceReference(String clazz)
clazz - : required interface.
public Object getService(ComponentInstance instance,
ServiceReference ref)
instance - : component instance requiring the service.ref - : the required reference.
public ServiceReference[] getAllServiceReferences(String clazz,
String filter)
throws InvalidSyntaxException
clazz - : the required interface.filter - : the LDAP filter.
InvalidSyntaxException - occurs when the LDAP filter is malformed.
public void addServiceListener(ServiceListener listener,
String filter)
listener - : the service listener to addfilter - : LDAP filterpublic void servicePropertiesModified(ServiceRegistrationImpl reg)
reg - : the implicated service registration.public void unregisterService(ServiceRegistrationImpl reg)
reg - : the service registration to unregisterpublic void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||