public class StaticServiceReferenceProxy extends 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.Constructor and Description |
---|
StaticServiceReferenceProxy(org.osgi.framework.ServiceReference target)
Constructs a new
StaticServiceReferenceProxy instance. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object other) |
boolean |
equals(Object obj) |
org.osgi.framework.Bundle |
getBundle() |
Object |
getProperty(String key) |
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,
String className) |
public StaticServiceReferenceProxy(org.osgi.framework.ServiceReference target)
StaticServiceReferenceProxy
instance.target
- service referencepublic org.osgi.framework.Bundle getBundle()
getBundle
in interface org.osgi.framework.ServiceReference
public Object getProperty(String key)
getProperty
in interface org.osgi.framework.ServiceReference
public String[] getPropertyKeys()
getPropertyKeys
in interface org.osgi.framework.ServiceReference
public org.osgi.framework.Bundle[] getUsingBundles()
getUsingBundles
in interface org.osgi.framework.ServiceReference
public boolean isAssignableTo(org.osgi.framework.Bundle bundle, String className)
isAssignableTo
in interface org.osgi.framework.ServiceReference
public org.osgi.framework.ServiceReference getTargetServiceReference()
ServiceReferenceProxy
getTargetServiceReference
in interface ServiceReferenceProxy
public int compareTo(Object other)
compareTo
in interface Comparable
compareTo
in interface org.osgi.framework.ServiceReference
Copyright © 2006–2016. All rights reserved.