Package | Description |
---|---|
java.lang |
REVISED Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.instrument |
REVISED Provides services that allow Java programming language agents to instrument
programs running on the JVM.
|
java.lang.reflect |
REVISED Provides classes and interfaces for obtaining reflective information about
classes and objects.
|
java.net |
REVISED Provides the classes for implementing networking applications.
|
java.security |
REVISED Provides the classes and interfaces for the security framework.
|
java.util |
REVISED Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
javax.tools |
REVISED Provides interfaces for tools which can be invoked from a program,
for example, compilers.
|
Modifier and Type | Method | Description |
---|---|---|
static ClassLoader |
ClassLoader.getPlatformClassLoader() |
NEW Returns the platform class loader for delegation.
|
static ClassLoader |
ClassLoader.getSystemClassLoader() |
REVISED Returns the system class loader for delegation.
|
ClassLoader |
ModuleLayer.findLoader(String name) |
Returns the
ClassLoader for the module with the given name. |
ClassLoader |
Class.getClassLoader() |
Returns the class loader for the class.
|
ClassLoader |
Module.getClassLoader() |
Returns the
ClassLoader for this module. |
ClassLoader |
ClassLoader.getParent() |
Returns the parent class loader for delegation.
|
Modifier and Type | Method | Description |
---|---|---|
ModuleLayer |
ModuleLayer.defineModulesWithManyLoaders(Configuration cf,
ClassLoader parentLoader) |
Creates a new module layer, with this layer as its parent, by defining the
modules in the given
Configuration to the Java virtual machine. |
static ModuleLayer.Controller |
ModuleLayer.defineModulesWithManyLoaders(Configuration cf,
List<ModuleLayer> parentLayers,
ClassLoader parentLoader) |
Creates a new module layer by defining the modules in the given
Configuration to the Java virtual machine. |
ModuleLayer |
ModuleLayer.defineModulesWithOneLoader(Configuration cf,
ClassLoader parentLoader) |
Creates a new module layer, with this layer as its parent, by defining the
modules in the given
Configuration to the Java virtual machine. |
static ModuleLayer.Controller |
ModuleLayer.defineModulesWithOneLoader(Configuration cf,
List<ModuleLayer> parentLayers,
ClassLoader parentLoader) |
Creates a new module layer by defining the modules in the given
Configuration to the Java virtual machine. |
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. |
Modifier and Type | Method | Description |
---|---|---|
ModuleLayer |
ModuleLayer.defineModules(Configuration cf,
Function<String,ClassLoader> clf) |
Creates a new module layer, with this layer as its parent, by defining the
modules in the given
Configuration to the Java virtual machine. |
static ModuleLayer.Controller |
ModuleLayer.defineModules(Configuration cf,
List<ModuleLayer> parentLayers,
Function<String,ClassLoader> clf) |
Creates a new module layer by defining the modules in the given
Configuration to the Java virtual machine. |
Constructor | Description |
---|---|
ClassLoader(String name,
ClassLoader parent) |
NEW Creates a new class loader of the specified name and using the
specified parent class loader for delegation.
|
ClassLoader(ClassLoader parent) |
Creates a new class loader using the specified parent class loader for
delegation.
|
Modifier and Type | Method | Description |
---|---|---|
default byte[] |
ClassFileTransformer.transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
REVISED Transforms the given class file and returns a new replacement class file.
|
default byte[] |
ClassFileTransformer.transform(Module module,
ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
NEW Transforms the given class file and returns a new replacement class file.
|
Class[] |
Instrumentation.getInitiatedClasses(ClassLoader loader) |
Returns an array of all classes for which
loader is an initiating loader. |
Modifier and Type | Method | Description |
---|---|---|
static Class<?> |
Proxy.getProxyClass(ClassLoader loader,
Class<?>... interfaces) |
Deprecated.
REVISED Proxy classes generated in a named module are encapsulated
and not accessible to code outside its module.
Constructor.newInstance
will throw IllegalAccessException when it is called on
an inaccessible proxy class.
Use Proxy.newProxyInstance(ClassLoader, Class[], InvocationHandler)
to create a proxy instance instead. |
static Object |
Proxy.newProxyInstance(ClassLoader loader,
Class<?>[] interfaces,
InvocationHandler h) |
REVISED Returns a proxy instance for the specified interfaces
that dispatches method invocations to the specified invocation
handler.
|
Modifier and Type | Class | Description |
---|---|---|
class |
URLClassLoader |
REVISED This class loader is used to load classes and resources from a search
path of URLs referring to both JAR files and directories.
|
Modifier and Type | Method | Description |
---|---|---|
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls,
ClassLoader parent) |
Creates a new instance of URLClassLoader for the specified
URLs and parent class loader.
|
Constructor | Description |
---|---|
URLClassLoader(String name,
URL[] urls,
ClassLoader parent) |
NEW Constructs a new named
URLClassLoader for the specified URLs. |
URLClassLoader(String name,
URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory) |
NEW Constructs a new named
URLClassLoader for the specified URLs,
parent class loader, and URLStreamHandlerFactory. |
URLClassLoader(URL[] urls,
ClassLoader parent) |
Constructs a new URLClassLoader for the given URLs.
|
URLClassLoader(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory) |
Constructs a new URLClassLoader for the specified URLs, parent
class loader, and URLStreamHandlerFactory.
|
Modifier and Type | Class | Description |
---|---|---|
class |
SecureClassLoader |
REVISED This class extends ClassLoader with additional support for defining
classes with an associated code source and permissions which are
retrieved by the system policy by default.
|
Constructor | Description |
---|---|
SecureClassLoader(String name,
ClassLoader parent) |
NEW Creates a new
SecureClassLoader of the specified name and
using the specified parent class loader for delegation. |
SecureClassLoader(ClassLoader parent) |
Creates a new SecureClassLoader using the specified parent
class loader for delegation.
|
Modifier and Type | Method | Description |
---|---|---|
static ResourceBundle |
ResourceBundle.getBundle(String baseName,
Locale locale,
ClassLoader loader) |
REVISED 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) |
REVISED 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) |
REVISED Creates a new service loader for the given service.
|
ResourceBundle |
ResourceBundle.Control.newBundle(String baseName,
Locale locale,
String format,
ClassLoader loader,
boolean reload) |
REVISED Instantiates a resource bundle for the given bundle name of the
given format and locale, using the given class loader if
necessary.
|
static void |
ResourceBundle.clearCache(ClassLoader loader) |
Removes all resource bundles from the cache that have been loaded
by the given 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. |
Modifier and Type | Method | Description |
---|---|---|
ClassLoader |
ForwardingJavaFileManager.getClassLoader(JavaFileManager.Location location) |
|
ClassLoader |
JavaFileManager.getClassLoader(JavaFileManager.Location location) |
Returns a class loader for loading plug-ins from the given
package-oriented location.
|
Copyright © 1993, 2017, Oracle and/or its affiliates · All rights reserved · License