public class MockBundle extends MockBundleBase
Bundle
.Modifier and Type | Field and Description |
---|---|
private org.osgi.framework.wiring.BundleWiring |
wiring |
Constructor and Description |
---|
MockBundle() |
MockBundle(org.osgi.framework.wiring.BundleWiring wiring)
A constructor that takes a
BundleWiring argument. |
Modifier and Type | Method and Description |
---|---|
<A> A |
adapt(Class<A> type) |
Class<?> |
loadClass(String classname)
Get the class loader of the mock, rather than that of the bundle.
|
compareTo, findEntries, getBundleContext, getBundleId, getDataFile, getEntry, getEntryPaths, getHeaders, getHeaders, getLastModified, getLocation, getRegisteredServices, getResource, getResources, getServicesInUse, getSignerCertificates, getState, getSymbolicName, getVersion, hasPermission, start, start, stop, stop, uninstall, update, update
public MockBundle(org.osgi.framework.wiring.BundleWiring wiring)
BundleWiring
argument.
This OSGi mock package doesn't have an implementation of
BundleWiring, so if one is needed one must use mockito
or another mock framework to create it.wiring
- a BundleWiring
instance used for class conversionpublic MockBundle()
public <A> A adapt(Class<A> type)
adapt
in interface org.osgi.framework.Bundle
adapt
in class MockBundleBase
public Class<?> loadClass(String classname) throws ClassNotFoundException
loadClass
in interface org.osgi.framework.Bundle
loadClass
in class MockBundleBase
ClassNotFoundException
Copyright © 2018. All rights reserved.