public class InVivoClassLoader extends ClassLoader
| Modifier and Type | Field and Description |
|---|---|
private org.osgi.framework.BundleContext |
context |
private String |
testClass |
| Constructor and Description |
|---|
InVivoClassLoader(String clazz,
org.osgi.framework.BundleContext context)
Creates the classloader.
|
| Modifier and Type | Method and Description |
|---|---|
private byte[] |
loadBytecode(String classname)
Loads the byte code of the given class.
|
Class<?> |
loadClass(String name)
Attempts to load the class with the given name.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprivate final org.osgi.framework.BundleContext context
private final String testClass
public InVivoClassLoader(String clazz, org.osgi.framework.BundleContext context)
clazz - the test classcontext - the bundle contextprivate byte[] loadBytecode(String classname) throws IOException
classname - the class nameIOException - if the class cannot be loaded.public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in class ClassLoadername - the class nameClassNotFoundException - if the class cannot be loaded (not found)Copyright © 2013–2015 Wisdom Framework. All rights reserved.