public class MockServiceReferenceBase<S> extends Object implements org.osgi.framework.ServiceReference<S>
BundleContext
.
The actual mock class inherits this class, and only needs replace
those methods needed by the tests.Constructor and Description |
---|
MockServiceReferenceBase() |
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) |
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 className)
isAssignableTo
in interface org.osgi.framework.ServiceReference<S>
public int compareTo(Object reference)
compareTo
in interface Comparable<Object>
compareTo
in interface org.osgi.framework.ServiceReference<S>
Copyright © 2018. All rights reserved.