|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.context.ServiceRegistrationImpl
public class ServiceRegistrationImpl
Internal service registration implementation. This class is used for in the composition.
| Constructor Summary | |
|---|---|
ServiceRegistrationImpl(ServiceRegistry registry,
ComponentInstance instance,
String[] classes,
Long serviceId,
Object svcObj,
Dictionary dict)
Constructor. |
|
| Method Summary | |
|---|---|
protected Dictionary |
getProperties()
Gets the published properties. |
protected Object |
getProperty(String key)
Look for a property in the service properties. |
protected String[] |
getPropertyKeys()
Get the property keys. |
ServiceReference |
getReference()
Get the service reference attached with this service registration. |
protected Object |
getService()
Get the service object. |
protected boolean |
isValid()
Check if the service registration still valid. |
void |
setProperties(Dictionary dict)
Add properties to a service registration. |
void |
ungetService(ComponentInstance instance,
Object srvObj)
Unget a service. |
void |
unregister()
Unregister the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceRegistrationImpl(ServiceRegistry registry,
ComponentInstance instance,
String[] classes,
Long serviceId,
Object svcObj,
Dictionary dict)
registry - : the service registryinstance - : component instanceclasses - : published interfaces arrayserviceId - : the unique service idsvcObj - : the service object or the service factory objectdict - : service properties| Method Detail |
|---|
protected boolean isValid()
public ServiceReference getReference()
getReference in interface ServiceRegistrationServiceRegistration.getReference()public void setProperties(Dictionary dict)
setProperties in interface ServiceRegistrationdict - : the properties to addServiceRegistration.setProperties(java.util.Dictionary)public void unregister()
unregister in interface ServiceRegistrationServiceRegistration.unregister()protected Object getProperty(String key)
key - : property key
protected String[] getPropertyKeys()
protected Dictionary getProperties()
protected Object getService()
public void ungetService(ComponentInstance instance,
Object srvObj)
instance - : component instance using the service.srvObj - : the unget service object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||