public class RuntimeClassLoader extends ClassLoader implements ClassOutput, TransformerTarget
| Constructor and Description |
|---|
RuntimeClassLoader(ClassLoader parent,
Path applicationClasses,
Path frameworkClassesPath,
Path transformerCache) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
findClass(String name) |
URL |
getResource(String nm) |
InputStream |
getResourceAsStream(String nm) |
Enumeration<URL> |
getResources(String nm) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
static byte[] |
readFileContent(Path path) |
void |
setTransformers(Map<String,List<BiFunction<String,org.objectweb.asm.ClassVisitor,org.objectweb.asm.ClassVisitor>>> functions) |
void |
writeClass(boolean applicationClass,
String className,
byte[] data)
Writes some generate bytecode to an output target
|
void |
writeResource(String name,
byte[] data) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgizmoAdaptorpublic RuntimeClassLoader(ClassLoader parent, Path applicationClasses, Path frameworkClassesPath, Path transformerCache)
public Enumeration<URL> getResources(String nm) throws IOException
getResources in class ClassLoaderIOExceptionpublic URL getResource(String nm)
getResource in class ClassLoaderpublic InputStream getResourceAsStream(String nm)
getResourceAsStream in class ClassLoaderprotected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionpublic void writeClass(boolean applicationClass,
String className,
byte[] data)
ClassOutputwriteClass in interface ClassOutputclassName - The class namedata - The bytecode bytespublic void setTransformers(Map<String,List<BiFunction<String,org.objectweb.asm.ClassVisitor,org.objectweb.asm.ClassVisitor>>> functions)
setTransformers in interface TransformerTargetpublic void writeResource(String name, byte[] data) throws IOException
writeResource in interface ClassOutputIOExceptionpublic static byte[] readFileContent(Path path) throws IOException
IOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.