public class QuarkusClassLoader extends ClassLoader implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
QuarkusClassLoader.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
JAVA |
protected static String |
META_INF_SERVICES |
| Modifier and Type | Method and Description |
|---|---|
static QuarkusClassLoader.Builder |
builder(String name,
ClassLoader parent,
boolean parentFirst) |
void |
close() |
protected Class<?> |
findClass(String moduleName,
String name)
This method is needed to make packages work correctly on JDK9+, as it will be called
to load the package-info class.
|
List<ClassPathElement> |
getElementsWithResource(String name) |
List<ClassPathElement> |
getElementsWithResource(String name,
boolean localOnly) |
URL |
getResource(String unsantisedName) |
InputStream |
getResourceAsStream(String unsanitisedName) |
Enumeration<URL> |
getResources(String unsanitisedName) |
Class<?> |
loadClass(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve) |
ClassLoader |
parent() |
void |
reset(Map<String,byte[]> generatedResources,
Map<String,byte[]> transformedClasses) |
String |
toString() |
Class<?> |
visibleDefineClass(String name,
byte[] b,
int off,
int len) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprotected static final String META_INF_SERVICES
protected static final String JAVA
public static QuarkusClassLoader.Builder builder(String name, ClassLoader parent, boolean parentFirst)
public void reset(Map<String,byte[]> generatedResources, Map<String,byte[]> transformedClasses)
public Enumeration<URL> getResources(String unsanitisedName) throws IOException
getResources in class ClassLoaderIOExceptionpublic URL getResource(String unsantisedName)
getResource in class ClassLoaderpublic InputStream getResourceAsStream(String unsanitisedName)
getResourceAsStream in class ClassLoaderprotected Class<?> findClass(String moduleName, String name)
moduleName - name - public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionprotected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic List<ClassPathElement> getElementsWithResource(String name)
public List<ClassPathElement> getElementsWithResource(String name, boolean localOnly)
public Class<?> visibleDefineClass(String name, byte[] b, int off, int len) throws ClassFormatError
ClassFormatErrorpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ClassLoader parent()
Copyright © 2020 JBoss by Red Hat. All rights reserved.