public class MockServiceReference extends Object implements org.osgi.framework.ServiceReference
| Constructor and Description |
|---|
MockServiceReference(org.osgi.framework.Bundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object reference) |
org.osgi.framework.Bundle |
getBundle() |
Object |
getProperty(String key) |
String[] |
getPropertyKeys() |
org.osgi.framework.Bundle[] |
getUsingBundles() |
boolean |
isAssignableTo(org.osgi.framework.Bundle bundle,
String className) |
void |
setProperty(String key,
Object value) |
public MockServiceReference(org.osgi.framework.Bundle bundle)
public org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.ServiceReferencepublic Object getProperty(String key)
getProperty in interface org.osgi.framework.ServiceReferencepublic 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,
String className)
isAssignableTo in interface org.osgi.framework.ServiceReferencepublic int compareTo(Object reference)
compareTo in interface ComparablecompareTo in interface org.osgi.framework.ServiceReferenceCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.