|
||||||||||
| 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,
java.lang.String[] classes,
java.lang.Long serviceId,
java.lang.Object svcObj,
java.util.Dictionary dict)
Constructor. |
|
| Method Summary | |
|---|---|
protected java.util.Dictionary |
getProperties()
Gets the published properties. |
protected java.lang.Object |
getProperty(java.lang.String key)
Look for a property in the service properties. |
protected java.lang.String[] |
getPropertyKeys()
Get the property keys. |
org.osgi.framework.ServiceReference |
getReference()
Get the service reference attached with this service registration. |
protected java.lang.Object |
getService()
Get the service object. |
protected boolean |
isValid()
Check if the service registration still valid. |
void |
setProperties(java.util.Dictionary dict)
Add properties to a service registration. |
void |
ungetService(ComponentInstance instance,
java.lang.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,
java.lang.String[] classes,
java.lang.Long serviceId,
java.lang.Object svcObj,
java.util.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 org.osgi.framework.ServiceReference getReference()
getReference in interface org.osgi.framework.ServiceRegistrationServiceRegistration.getReference()public void setProperties(java.util.Dictionary dict)
setProperties in interface org.osgi.framework.ServiceRegistrationdict - : the properties to addServiceRegistration.setProperties(java.util.Dictionary)public void unregister()
unregister in interface org.osgi.framework.ServiceRegistrationServiceRegistration.unregister()protected java.lang.Object getProperty(java.lang.String key)
key - : property key
protected java.lang.String[] getPropertyKeys()
protected java.util.Dictionary getProperties()
protected java.lang.Object getService()
public void ungetService(ComponentInstance instance,
java.lang.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 | |||||||||