ModuleLoaders which build modules from
various configuration information and resource roots.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| pack-priv volatile Set | aliases
Module aliases |
| private static final AtomicReference | |
| private static final FastCopyHashSet | |
| private static final FastCopyHashSet | |
| private final LocalLoader | fallbackLoader
The fallback local loader, if any is defined. |
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| private static final RuntimePermission | |
| private volatile Linkage | linkage
The linkage state. |
| pack-priv static volatile ModuleLogger | log
The system-wide module logger, which may be changed via |
| private static final MethodType | |
| private final String | mainClassName
The name of the main class, if any (may be |
| private final ModuleClassLoader | moduleClassLoader
The module class loader for this module. |
| private final ModuleLoader | moduleLoader
The module loader which created this module. |
| private final String | name
The name of this module. |
| private static final PermissionCollection | |
| private final PermissionCollection | permissionCollection
The assigned permission collection. |
| pack-priv static final ModulesPrivateAccess | |
| private final Map | properties
The properties map specified when this module was defined. |
| pack-priv static final String[] | |
| pack-priv static final String[] | |
| private final Version | version
The (optional) module version. |
| Access | Constructor and Description |
|---|---|
| pack-priv | Module(final ConcreteModuleSpec
the module specification spec, final ModuleLoader the module loader moduleLoader)Construct a new instance from a module specification. |
| Modifier and Type | Method and Description |
|---|---|
| private long | addExportedPaths(Dependency[] dependencies, Map<String, List<LocalLoader>> map, FastCopyHashSet<PathFilter> filterStack, FastCopyHashSet<ClassFilter> classFilterStack, final FastCopyHashSet<PathFilter> resourceFilterStack, Set<Module.
|
| private long | addPaths(Dependency[] dependencies, Map<String, List<LocalLoader>> map, FastCopyHashSet<PathFilter> filterStack, FastCopyHashSet<ClassFilter> classFilterStack, final FastCopyHashSet<PathFilter> resourceFilterStack, Set<Module.
|
| private Dependency[] | |
| private static PermissionCollection | |
| private LocalLoader | |
| private LocalLoader | |
| pack-priv static String | Returns: the name of the corresponding class filethe class name className)Get the file name of a class. |
| public static <T> Iterable | Returns: An iterable of available and filtered providers of given typeservice provider type type, final Predicate<Class<?>> to specify which providers to load filter, final ClassLoader to be used for providers lookup loader)Returns an iterable of available and filtered providers of given type. |
| public static Module | |
| public static Module | Returns: the associated modulethe class loader cl, boolean true to search up the delegation chainGet the module for a class loader, or |
| public static ModuleLoader | |
| public static Module | |
| public static ModuleLoader | Returns: the current module loader, ornull if this method is called outside of a moduleGets the current module loader. |
| public ModuleClassLoader | |
| pack-priv ModuleClassLoader | |
| public static ModuleLoader | Returns: the module loader, ornull if none is setGet the current thread's context module loader. |
| public DependencySpec[] | Returns: the current dependencies of this moduleGet the current dependencies of this module. |
| pack-priv Dependency[] | |
| pack-priv DependencySpec[] | |
| public Set | Returns: the paths that are exported by this moduleGet all the paths exported by this module. |
| public Resource | Returns: the resourcethe module root to search rootPath, final String the path of the resource resourcePath)
Deprecated
Resource root names are deprecated.
Get an exported resource from a specific root in this module.
|
| public URL | Returns: the resource, ornull if it was not foundthe resource name name)Get an exported resource URL. |
| public Enumeration | Returns: the resource URLsthe resource name name)Get all exported resource URLs for a resource name. |
| pack-priv LocalLoader | |
| public ModuleIdentifier | Returns: the identifier
Deprecated
Use
Get this module's identifier.
getName() instead.
|
| public Set | Returns: the set of pathsGet the (unmodifiable) set of paths which are imported into this module class loader, including local paths. |
| pack-priv String | |
| public Module | Returns: the modulethe module identifier identifier)
Deprecated
Use
Get the module with the given identifier from the module loader used by this module.
getModule(String) instead.
|
| public Module | |
| public static Module | Returns: the modulethe module identifier identifier)
Deprecated
Use
Get a module from the current module loader.
getModuleFromCallerModuleLoader(String) instead.
|
| public static Module | Returns: the modulethe module name name)Get a module from the current module loader. |
| public ModuleLoader | Returns: the module loader of this moduleGet the module loader which created this module. |
| public static ModuleLogger | |
| public String | |
| pack-priv Package | |
| pack-priv Package[] | |
| pack-priv Map | |
| pack-priv Map | |
| public PermissionCollection | Returns: the module permission collectionGet the module's configured permission collection. |
| public static String | |
| public static ModulesPrivateAccess | |
| public String | Returns: the property valuethe property name name)Get the property with the given name, or |
| public String | Returns: the property valuethe property name name, String the default value defaultVal)Get the property with the given name, or a default value if none was defined. |
| public List | |
| pack-priv URL | Returns: the resource URL, ornull if not foundthe resource name name)Load a resource from a local loader. |
| pack-priv InputStream | Returns: the resource stream, ornull if not foundthe resource name name)Load a resource from a local loader. |
| pack-priv Enumeration | Returns: the enumeration of all the matching resource URLs (may be empty)the resource name name)Load all resources of a given name from a local loader. |
| public static long | Returns: start time of Module.class loadReturn the start time in millis when Module.class was loaded. |
| public static ModuleLoader | |
| public Version | |
| public Iterator | Returns: the iteratorthe glob to apply glob)Enumerate all imported resources in this module which match the given glob expression. |
| pack-priv static void | |
| public Iterator | Returns: the resource iterator (possibly empty)the filter to apply to the search filter)Enumerate all the imported resources in this module, subject to a path filter. |
| pack-priv void | |
| public static Class | Returns: the classthe identifier of the module from which the class
should be loaded moduleIdentifier, final String the class name to load className)
Deprecated
Use
Load a class from a module in the system module loader.
loadClassFromBootModuleLoader(String, String) instead.
|
| public static Class | Returns: the classthe name of the module from which the class
should be loaded name, final String the class name to load className)Load a class from a module in the system module loader. |
| public static Class | Returns: the classthe identifier of the module from which the class
should be loaded moduleIdentifier, final String the class name to load className)
Deprecated
Use
Load a class from a module in the caller's module loader.
loadClassFromCallerModuleLoader(String, String) instead.
|
| public static Class | Returns: the classthe name of the module from which the class
should be loaded name, final String the class name to load className)Load a class from a module in the caller's module loader. |
| pack-priv Class | Returns: the classthe class name className, final boolean true to resolve the class after definitionLoad a class from a local loader. |
| public < the service type S> ServiceLoader | Returns: the service loaderthe service type class serviceType)Load a service loader from this module. |
| public < the service type S> ServiceLoader | Returns: the service loaderthe service type class serviceType)Load a service loader from this module, without looking at dependencies. |
| public static < the the service type S> ServiceLoader | Returns: the loaded service from the caller's modulethe module identifier containing the service loader identifier, Class<S> the service type class serviceType)
Deprecated
Use
Load a service loader from a module in the caller's module loader.
loadServiceFromCallerModuleLoader(String, Class) instead.
|
| public static < the the service type S> ServiceLoader | Returns: the loaded service from the caller's modulethe module name containing the service loader name, Class<S> the service type class serviceType)Load a service loader from a module in the caller's module loader. |
| private static PermissionCollection | |
| pack-priv static String | |
| pack-priv static String | Returns: the parent paththe binary name of the class className)Get the path name of a class. |
| public static void | registerContentHandlerFactoryModule(Module
the module to add module)Register an additional module which contains content handlers. |
| public static void | registerURLStreamHandlerFactoryModule(Module
the module to add module)Register an additional module which contains URL handlers. |
| pack-priv void | |
| pack-priv void | |
| public void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public static void | setModuleLogger(final ModuleLogger
the new logger, must not be logger)nullChange the logger used by the module system. |
| public String | Returns: the string representationOverrides java. |