class SwappingServiceReferenceProxy extends java.lang.Object implements ServiceReferenceProxy
ServiceReference implementation that delegates to an underlying implementation which
can be swapped at runtime.
Note: this class is thread-safe.| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.ServiceReference |
delegate |
private static int |
HASH_CODE |
| Constructor and Description |
|---|
SwappingServiceReferenceProxy() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object other) |
boolean |
equals(java.lang.Object obj) |
org.osgi.framework.Bundle |
getBundle() |
java.lang.Object |
getProperty(java.lang.String key) |
java.lang.String[] |
getPropertyKeys() |
org.osgi.framework.ServiceReference |
getTargetServiceReference()
Returns the target, native service reference used, at the moment of the
call, by the proxy.
|
org.osgi.framework.Bundle[] |
getUsingBundles() |
int |
hashCode() |
boolean |
isAssignableTo(org.osgi.framework.Bundle bundle,
java.lang.String className) |
(package private) org.osgi.framework.ServiceReference |
swapDelegates(org.osgi.framework.ServiceReference newDelegate) |
private static final int HASH_CODE
private org.osgi.framework.ServiceReference delegate
org.osgi.framework.ServiceReference swapDelegates(org.osgi.framework.ServiceReference newDelegate)
public org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.ServiceReferencepublic java.lang.Object getProperty(java.lang.String key)
getProperty in interface org.osgi.framework.ServiceReferencepublic java.lang.String[] getPropertyKeys()
getPropertyKeys in interface org.osgi.framework.ServiceReferencepublic org.osgi.framework.Bundle[] getUsingBundles()
getUsingBundles in interface org.osgi.framework.ServiceReferencepublic boolean isAssignableTo(org.osgi.framework.Bundle bundle,
java.lang.String className)
isAssignableTo in interface org.osgi.framework.ServiceReferencepublic org.osgi.framework.ServiceReference getTargetServiceReference()
ServiceReferenceProxygetTargetServiceReference in interface ServiceReferenceProxypublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.ComparablecompareTo in interface org.osgi.framework.ServiceReference