public class StaticServiceReferenceProxy extends java.lang.Object implements ServiceReferenceProxy
ServiceReference proxy which simply does delegation, without any extra features. It's main purpose is
to allow the consistent behaviour between dynamic and static proxies.| Modifier and Type | Field and Description |
|---|---|
private static int |
HASH_CODE |
private org.osgi.framework.ServiceReference |
target |
| Constructor and Description |
|---|
StaticServiceReferenceProxy(org.osgi.framework.ServiceReference target)
Constructs a new
StaticServiceReferenceProxy instance. |
| 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) |
private static final int HASH_CODE
private final org.osgi.framework.ServiceReference target
public StaticServiceReferenceProxy(org.osgi.framework.ServiceReference target)
StaticServiceReferenceProxy instance.target - service referencepublic 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