| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | BootLoader.
Helper class to define |
| Modifier and Type | Field and Description |
|---|---|
| private static final ConcurrentHashMap | |
| private static final String | |
| private static final JavaLangAccess | |
| private static final Module |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Package | definePackage(Class<?> c)
Define a package for the given class to the boot loader, if not already defined. |
| public static URL | findResource(String mn, String name)
Returns a URL to a resource in a module defined to the boot loader. |
| public static URL | findResource(String name)
Returns the URL to the given resource in any of the modules defined to the boot loader and the boot class path. |
| public static InputStream | findResourceAsStream(String mn, String name)
Returns an input stream to a resource in a module defined to the boot loader. |
| public static Enumeration | findResources(String name)
Returns an Iterator to iterate over the resources of the given name in any of the modules defined to the boot loader. |
| public static ConcurrentHashMap | |
| public static Package | getDefinedPackage(String pn)
Returns the Package of the given name defined to the boot loader or null if the package has not been defined. |
| public static NativeLibraries | |
| public static ServicesCatalog | |
| private static native String | getSystemPackageLocation(String name)
Returns the location of the package of the given name, if
defined by the boot loader; otherwise |
| private static native String[] | getSystemPackageNames()
Returns an array of the binary name of the packages defined by the boot loader, in VM internal form (forward slashes instead of dot). |
| public static Module | |
| public static boolean | |
| public static Class | |
| public static Class | |
| public static void | |
| public static void | loadModule(ModuleReference mref)
Registers a module with this class loader so that its classes (and resources) become visible via this class loader. |
| public static Stream | |
| private static native void |
| CLASS_LOADER_VALUE_MAP | back to summary |
|---|---|
| private static final ConcurrentHashMap<?, ?> CLASS_LOADER_VALUE_MAP | |
| JAVA_HOME | back to summary |
|---|---|
| private static final String JAVA_HOME | |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| UNNAMED_MODULE | back to summary |
|---|---|
| private static final Module UNNAMED_MODULE | |
| BootLoader | back to summary |
|---|---|
| private BootLoader() | |
| definePackage | back to summary |
|---|---|
| public static Package definePackage(Class<?> c) Define a package for the given class to the boot loader, if not already defined. | |
| findResource | back to summary |
|---|---|
| public static URL findResource(String mn, String name) throws IOException Returns a URL to a resource in a module defined to the boot loader. | |
| findResource | back to summary |
|---|---|
| public static URL findResource(String name) Returns the URL to the given resource in any of the modules defined to the boot loader and the boot class path. | |
| findResourceAsStream | back to summary |
|---|---|
| public static InputStream findResourceAsStream(String mn, String name) throws IOException Returns an input stream to a resource in a module defined to the boot loader. | |
| findResources | back to summary |
|---|---|
| public static Enumeration Returns an Iterator to iterate over the resources of the given name in any of the modules defined to the boot loader. | |
| getClassLoaderValueMap | back to summary |
|---|---|
| public static ConcurrentHashMap Returns the ClassLoaderValue map for the boot class loader. | |
| getDefinedPackage | back to summary |
|---|---|
| public static Package getDefinedPackage(String pn) Returns the Package of the given name defined to the boot loader or null if the package has not been defined. | |
| getNativeLibraries | back to summary |
|---|---|
| public static NativeLibraries getNativeLibraries() Returns NativeLibraries for the boot class loader. | |
| getServicesCatalog | back to summary |
|---|---|
| public static ServicesCatalog getServicesCatalog() Returns the ServiceCatalog for modules defined to the boot class loader. | |
| getSystemPackageLocation | back to summary |
|---|---|
| private static native String getSystemPackageLocation(String name) Returns the location of the package of the given name, if
defined by the boot loader; otherwise | |
| getSystemPackageNames | back to summary |
|---|---|
| private static native String[] getSystemPackageNames() Returns an array of the binary name of the packages defined by the boot loader, in VM internal form (forward slashes instead of dot). | |
| getUnnamedModule | back to summary |
|---|---|
| public static Module getUnnamedModule() Returns the unnamed module for the boot loader. | |
| hasClassPath | back to summary |
|---|---|
| public static boolean hasClassPath() Returns | |
| loadClass | back to summary |
|---|---|
| public static Class Loads the Class object with the given name in the given module
defined to the boot loader. Returns | |
| loadClassOrNull | back to summary |
|---|---|
| public static Class Loads the Class object with the given name defined to the boot loader. | |
| loadLibrary | back to summary |
|---|---|
| public static void loadLibrary(String name) Loads a native library from the system library path. | |
| loadModule | back to summary |
|---|---|
| public static void loadModule(ModuleReference mref) Registers a module with this class loader so that its classes (and resources) become visible via this class loader. | |
| packages | back to summary |
|---|---|
| public static Stream Returns a stream of the packages defined to the boot loader. | |
| setBootLoaderUnnamedModule0 | back to summary |
|---|---|
| private static native void setBootLoaderUnnamedModule0(Module module) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final NativeLibraries |
| Access | Constructor and Description |
|---|---|
| private |
| NATIVE_LIBS | back to summary |
|---|---|
| private static final NativeLibraries NATIVE_LIBS | |
| Holder | back to summary |
|---|---|
| private Holder() | |
Package objects for packages in modules
defined to the boot loader.
| Modifier and Type | Field and Description |
|---|---|
| private static final JavaLangAccess |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Package | definePackage(String
package name name, String location where the package is (jrt URL or file URL
for a named module in the run-time or exploded image;
a file path for a package from -Xbootclasspath/a) location)Define the |
| private static Module | |
| private static Manifest | getManifest(String location)
Returns the Manifest if the given location is a JAR file containing a manifest. |
| private static URL |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| PackageHelper | back to summary |
|---|---|
| pack-priv PackageHelper() | |
| definePackage | back to summary |
|---|---|
| pack-priv static Package definePackage(String name, String location) Define the If the given location is a JAR file containing a manifest, the defined Package contains the versioning information from the manifest, if present. | |
| findModule | back to summary |
|---|---|
| private static Module findModule(String location) Finds the module at the given location defined to the boot loader. The module is either in runtime image or exploded image. Otherwise this method returns null. | |
| getManifest | back to summary |
|---|---|
| private static Manifest getManifest(String location) Returns the Manifest if the given location is a JAR file containing a manifest. | |
| toFileURL | back to summary |
|---|---|
| private static URL toFileURL(String location) Returns URL if the given location is a regular file path. | |