S
- service reference typepublic class DMXTestServiceReference<S> extends Object implements org.osgi.framework.ServiceReference<S>
ServiceReference
for use in testing. This
class implements only a minimal set of methods needed to pass compilation and be used for
basic unit testing.Constructor and Description |
---|
DMXTestServiceReference(Dictionary<String,?> dict)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
org.osgi.framework.Bundle |
getBundle() |
Object |
getProperty(String key) |
String[] |
getPropertyKeys() |
org.osgi.framework.Bundle[] |
getUsingBundles() |
boolean |
isAssignableTo(org.osgi.framework.Bundle bundle,
String string) |
public DMXTestServiceReference(Dictionary<String,?> dict)
dict
- public Object getProperty(String key)
getProperty
in interface org.osgi.framework.ServiceReference<S>
public String[] getPropertyKeys()
getPropertyKeys
in interface org.osgi.framework.ServiceReference<S>
public org.osgi.framework.Bundle getBundle()
getBundle
in interface org.osgi.framework.ServiceReference<S>
public org.osgi.framework.Bundle[] getUsingBundles()
getUsingBundles
in interface org.osgi.framework.ServiceReference<S>
public boolean isAssignableTo(org.osgi.framework.Bundle bundle, String string)
isAssignableTo
in interface org.osgi.framework.ServiceReference<S>
public int compareTo(Object o)
compareTo
in interface Comparable<Object>
compareTo
in interface org.osgi.framework.ServiceReference<S>
Copyright © 2012-2014 Vektor Software. All Rights Reserved.