| Package | Description |
|---|---|
| java.lang | |
| java.lang.invoke | |
| java.lang.reflect |
Provides classes and interfaces for obtaining reflective
information about classes and objects.
|
| java.util | |
| org.apidesign.vm4brwsr | |
| org.openide.util.lookup |
Support classes for the Registration and
Lookup extension mechanism. |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
Class.getClassLoader()
Returns the class loader for the class.
|
ClassLoader |
Thread.getContextClassLoader()
Returns the context ClassLoader for this Thread.
|
ClassLoader |
ClassLoader.getParent()
Returns the parent class loader for delegation.
|
static ClassLoader |
ClassLoader.getSystemClassLoader()
Returns the system class loader for delegation.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
Class.forName(String name,
boolean initialize,
ClassLoader loader)
Returns the
Class object associated with the class or
interface with the given string name, using the given class loader. |
void |
Thread.setContextClassLoader(ClassLoader cl)
Sets the context ClassLoader for this Thread.
|
| Constructor and Description |
|---|
ClassLoader(ClassLoader parent)
Creates a new class loader using the specified parent class loader for
delegation.
|
| Modifier and Type | Method and Description |
|---|---|
static MethodType |
MethodType.fromMethodDescriptorString(String descriptor,
ClassLoader loader)
Finds or creates an instance of a method type, given the spelling of its bytecode descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
Proxy.getProxyClass(ClassLoader loader,
Class<?>... interfaces)
Returns the
java.lang.Class object for a proxy class
given a class loader and an array of interfaces. |
static Object |
Proxy.newProxyInstance(ClassLoader loader,
Class<?>[] interfaces,
InvocationHandler h)
Returns an instance of a proxy class for the specified interfaces
that dispatches method invocations to the specified invocation
handler.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ResourceBundle.clearCache(ClassLoader loader)
Removes all resource bundles from the cache that have been loaded
using the given class loader.
|
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale,
ClassLoader loader)
Gets a resource bundle using the specified base name, locale, and class
loader.
|
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale targetLocale,
ClassLoader loader,
ResourceBundle.Control control)
Returns a resource bundle using the specified base name, target
locale, class loader and control.
|
static <S> ServiceLoader<S> |
ServiceLoader.load(Class<S> service,
ClassLoader loader)
Creates a new service loader for the given service type and class
loader.
|
boolean |
ResourceBundle.Control.needsReload(String baseName,
Locale locale,
String format,
ClassLoader loader,
ResourceBundle bundle,
long loadTime)
Determines if the expired
bundle in the cache needs
to be reloaded based on the loading time given by
loadTime or some other criteria. |
ResourceBundle |
ResourceBundle.Control.newBundle(String baseName,
Locale locale,
String format,
ClassLoader loader,
boolean reload)
Instantiates a resource bundle for the given bundle name of the
given format and locale, using the given class loader if
necessary.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Bck2Brwsr.generate(Appendable out,
ClassLoader loader,
String... classes)
Helper method to generate virtual machine from bytes served by a class loader.
|
Bck2Brwsr |
Bck2Brwsr.resources(ClassLoader loader)
A way to change the provider of additional resources (classes) for the
compiler by specifying classloader to use for loading them.
|
Bck2Brwsr |
Bck2Brwsr.resources(ClassLoader loader,
boolean ignoreBootClassPath)
A way to change the provider of additional resources (classes) for the
compiler by specifying classloader to use for loading them.
|
| Modifier and Type | Method and Description |
|---|---|
static Lookup |
Lookups.metaInfServices(ClassLoader classLoader)
Returns a lookup that implements the JDK1.3 JAR services mechanism and delegates
to META-INF/services/name.of.class files.
|
static Lookup |
Lookups.metaInfServices(ClassLoader classLoader,
String prefix)
Returns a lookup that behaves exactly like
Lookups.metaInfServices(ClassLoader)
except that it does not read data from META-INF/services/, but instead
from the specified prefix. |
Copyright © 2025 API Design. All Rights Reserved.