| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| private static interface | |
| pack-priv static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final AtomicInteger | |
| private final AtomicLong | |
| private final ModuleFinder[] | |
| private static final Class | |
| private final AtomicLong | |
| private final AtomicLong | |
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| private final ConcurrentMap | |
| private final ModuleLoaderMXBean | |
| public static final ModuleFinder[] | NO_FINDERS
A constant representing zero module finders. |
| pack-priv static final Object | |
| private final boolean | |
| private final boolean | |
| private final AtomicInteger | |
| private static final Reaper | |
| private static volatile ModuleLoader. | |
| private final AtomicInteger | |
| private static final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| protected | |
| public | ModuleLoader(final ModuleFinder[]
the module finders to search, in order finders)Construct a new instance. |
| public | ModuleLoader(final ModuleFinder
the single module finder to search (must not be finder)null)Construct a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| private static boolean | |
| private Module | Returns: The defined ModuleThe module specification to create the Module from moduleSpec, final ModuleLoader.the future module to populate futureModuleDefines a Module based on a specification. |
| protected final Module | Returns: the module, ornull if it wasn't foundthe module identifier identifier)
Deprecated
Use
Find an already-loaded module, returning findLoadedModuleLocal(String) instead.
null if the module isn't currently loaded.
|
| protected final Module | Returns: the module, ornull if it wasn't foundthe module identifier name)Find an already-loaded module, returning |
| protected ModuleSpec | Returns: the module specificationthe module identifier moduleIdentifier)
Deprecated
Use
This compatibility method just calls findModule(String) instead.
findModule(methodIdentifier.toString()) and is usually not used;
if however a legacy subclass overrides this method, then it will be called instead of findModule(String),
and that method will redirect to this one.
|
| protected ModuleSpec | Returns: the module specification, ornull if no module is found with the given identifierthe module name name)Find a Module's specification in this ModuleLoader by its name. |
| private ModuleSpec | |
| public static ModuleLoader | |
| public static ModuleLoader | Returns: the module loader ornull if the class loader does not belong to a module loader.the class loader classLoader)Get the module loader for a class loader. |
| protected DependencySpec[] | Returns: the current dependency list for the moduleGet the current dependency list for a module which was defined by this module loader, without any access checks. |
| protected final ModuleFinder[] | |
| public String | Returns: the description stringthe module to describe module)Get a string representation of the given module, used in debug output and stack traces. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public static void | |
| public final Iterator | Returns: an iterator for the modules in this module finderthe identifier to start with, or baseIdentifier, final boolean null to iterate all modulestrue to find recursively nested modules, false to only find immediately nested modules
Deprecated
Use
Iterate the modules which can be located via this module loader.
iterateModules(String, boolean) instead.
|
| public final Iterator | Returns: an iterator for the modules in this module finderthe identifier to start with, or baseName, final boolean null to iterate all modules; ignored if this module
loader does not have a concept of nested modulestrue to find recursively nested modules, false to only find immediately nested
modules; ignored if this module finder does not have a concept of nested modulesIterate the modules which can be located via this module loader. |
| public final Module | Returns: The loaded ModuleThe module identifier identifier)
Deprecated
Use
Load a module based on an identifier.
loadModule(String) instead.
|
| public final Module | Returns: The loaded ModuleThe module name name)Load a module based on an identifier. |
| protected final Module | Returns: the modulethe module identifier moduleIdentifier)
Deprecated
Use
Try to load a module from this module loader.
loadModuleLocal(String) instead.
|
| protected final Module | Returns: the modulethe module name name)Try to load a module from this module loader. |
| protected Module | Returns: the load result, ornull if the module is not foundthe module name name)Preload an "exported" module based on an identifier. |
| protected Module | Returns: the load result, ornull if the module is not foundthe module identifier identifier)
Deprecated
Use
Preload an "exported" module based on an identifier.
preloadModule(String) instead.
|
| protected Module | Returns: the load result, ornull if the module is not foundthe module identifier (must not be identifier)null)
Deprecated
Use
This compatibility method just calls preloadModule(String) instead.
preloadModule(methodIdentifier.toString()) and is usually not used;
if however a legacy subclass overrides this method, then it will be called instead of preloadModule(String),
and that method will redirect to this one.
|
| protected Module | Returns: the load result, ornull if the module is not foundthe module identifier name)Preload a module based on an identifier. |
| protected static Module | Returns: the delegation resultthe module name name, ModuleLoader the module loader to delegate to moduleLoader)Utility method to delegate to another module loader, accessible from subclasses. |
| protected static Module | Returns: the delegation resultthe module identifier identifier, ModuleLoader the module loader to delegate to moduleLoader)
Deprecated
Use
Utility method to delegate to another module loader, accessible from subclasses.
preloadModule(String, ModuleLoader) instead.
|
| protected void | refreshResourceLoaders(Module
the module to refresh module)Refreshes the paths provided by resource loaders associated with the specified Module. |
| protected void | |
| private static ModuleFinder[] | |
| protected void | setAndRefreshResourceLoaders(Module
the module to update and refresh module, Collection<ResourceLoaderSpec> the new collection of loaders the module should use loaders)Replaces the resources loaders for the specified module and refreshes the internal path list that is derived from the loaders. |
| protected void | setAndRelinkDependencies(Module
the module to update and relink module, List<DependencySpec> the new dependency list dependencies)Replaces the dependencies for the specified module and relinks against the new modules This is an advanced method that should be used carefully, since it alters a live module. |
| public String | Returns: the string representationOverrides java. |
| protected final void | unloadModuleLocal(Module
the module to unload module)
Deprecated
use
Unload a module from this module loader.
unloadModuleLocal(String, Module) instead
|
| protected final boolean | Returns: true iff module was unloadedthe module identifier moduleId, final Module the module to unload module)Unload a module from this module loader. |