|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.context.ServiceReferenceImpl
public class ServiceReferenceImpl
Internal service reference implementation. This class is used for in the composition.
| Constructor Summary | |
|---|---|
ServiceReferenceImpl(ComponentInstance instance,
ServiceRegistrationImpl ref)
Constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object reference)
Service Reference compare method. |
Bundle |
getBundle()
Not supported in composite. |
Dictionary |
getProperties()
|
Object |
getProperty(String name)
Get a property value. |
String[] |
getPropertyKeys()
Get the String arrays of service property keys. |
ServiceRegistrationImpl |
getServiceRegistration()
Get the service registration for this reference. |
Bundle[] |
getUsingBundles()
Unsupported Operation inside composite. |
boolean |
isAssignableTo(Bundle arg0,
String arg1)
Check if the current service reference is assignable to the given bundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceReferenceImpl(ComponentInstance instance,
ServiceRegistrationImpl ref)
instance - : component instance publishing the service.ref - : registration attached to this service reference.| Method Detail |
|---|
public Bundle getBundle()
getBundle in interface ServiceReferenceServiceReference.getBundle()public ServiceRegistrationImpl getServiceRegistration()
public Object getProperty(String name)
getProperty in interface ServiceReferencename - : the key of the required property.
ServiceReference.getProperty(java.lang.String)public String[] getPropertyKeys()
getPropertyKeys in interface ServiceReferenceServiceReference.getPropertyKeys()public Dictionary getProperties()
public Bundle[] getUsingBundles()
getUsingBundles in interface ServiceReferenceServiceReference.getUsingBundles()
public boolean isAssignableTo(Bundle arg0,
String arg1)
isAssignableTo in interface ServiceReferencearg0 - : the bundle to checkarg1 - : the class name to check.
ServiceReference.isAssignableTo(org.osgi.framework.Bundle, java.lang.String)public int compareTo(Object reference)
compareTo in interface ComparablecompareTo in interface ServiceReferencereference - the service reference
UnsupportedOperationException.ServiceReference.compareTo(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||