module.xml descriptors.
| Modifier and Type | Field and Description |
|---|---|
| private final AccessControlContext | accessControlContext
Deprecated
as a consequence of
AccessControlContext being deprecated.
|
| private static final Predicate | |
| private static final Path | |
| private static final File[] | |
| private final PathFilter | |
| private final File[] | |
| private final List | |
| private final ModuleXmlParser. | |
| private static final ResourceLoader |
| Access | Constructor and Description |
|---|---|
| private | |
| public | LocalModuleFinder(final File[]
the repository roots to use repoRoots, final PathFilter the path filter to use pathFilter)Construct a new instance. |
| public | |
| public | LocalModuleFinder()
Construct a new instance, using the |
| public | LocalModuleFinder(boolean
true if the identified module repository roots should be checked for
an internal structure of child "layer" and "add-on" directories that may also
be treated as module roots lower in precedence than the parent root. Any "layers"
subdirectories whose names are specified in a layers.conf file found in
the module repository root will be added in the precedence of order specified
in the layers.conf file; all "add-on" subdirectories will be added at
a lower precedence than all "layers" and with no guaranteed precedence order
between them. If false no check for "layer" and "add-on" directories
will be performed.Construct a new instance, using the |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public ModuleSpec | findModule(final String
the module name name, final ModuleLoader the module loader from which dependencies should be resolved delegateLoader)Overrides default org. |
| private static File[] | |
| private static File[] | |
| pack-priv static File[] | |
| public Iterator | iterateModules(final String baseName, final boolean recursive, final ModuleLoader delegateLoader)
Overrides default org. |
| public static ModuleSpec | Returns: the module specificationthe identifier to load identifier, final ModuleLoader the delegate module loader to use for module specifications delegateLoader, final File... the repository root paths to search roots)
Deprecated
Use
Parse a parseModuleXmlFile(String, ModuleLoader, File. instead.
module.xml file and return the corresponding module specification.
|
| public static ModuleSpec | Returns: the module specificationthe name of the module to load name, final ModuleLoader the delegate module loader to use for module specifications delegateLoader, final File... the repository root paths to search roots)Parse a |
| pack-priv static ModuleSpec | parseModuleXmlFile(final ModuleXmlParser.
|
| private static void | |
| public String |
| accessControlContext | back to summary |
|---|---|
| private final AccessControlContext accessControlContext
Deprecated as a consequence of | |
| ITER_FILTER | back to summary |
|---|---|
| private static final Predicate<Path> ITER_FILTER | |
| MODULE_FILE_PATH | back to summary |
|---|---|
| private static final Path MODULE_FILE_PATH | |
| NO_FILES | back to summary |
|---|---|
| private static final File[] NO_FILES | |
| pathFilter | back to summary |
|---|---|
| private final PathFilter pathFilter | |
| repoRoots | back to summary |
|---|---|
| private final File[] repoRoots | |
| resourceLoaderList | back to summary |
|---|---|
| private final List<ResourceLoader> resourceLoaderList | |
| resourceRootFactory | back to summary |
|---|---|
| private final ModuleXmlParser. | |
| TERMINATED_MARKER | back to summary |
|---|---|
| private static final ResourceLoader TERMINATED_MARKER | |
| LocalModuleFinder | back to summary |
|---|---|
| private LocalModuleFinder(final File[] repoRoots, final PathFilter pathFilter, final boolean cloneRoots) | |
| LocalModuleFinder | back to summary |
|---|---|
| public LocalModuleFinder(final File[] repoRoots, final PathFilter pathFilter) Construct a new instance.
| |
| LocalModuleFinder | back to summary |
|---|---|
| public LocalModuleFinder(final File[] repoRoots) Construct a new instance.
| |
| LocalModuleFinder | back to summary |
|---|---|
| public LocalModuleFinder() Construct a new instance, using the
This is equivalent to a call to | |
| LocalModuleFinder | back to summary |
|---|---|
| public LocalModuleFinder(boolean supportLayersAndAddOns) Construct a new instance, using the
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Close this module loader and release all backing files. Note that subsequent load attempts will fail with an error after this method is called. | |
| findModule | back to summary |
|---|---|
| public ModuleSpec findModule(final String name, final ModuleLoader delegateLoader) throws ModuleLoadException Overrides default org. Doc from org. Find a module specification for the given name. The default implementation delegates to the legacy
| |
| getFiles | back to summary |
|---|---|
| private static File[] getFiles(final String modulePath, final int stringIdx, final int arrayIdx) | |
| getModulePathFiles | back to summary |
|---|---|
| private static File[] getModulePathFiles() | |
| getRepoRoots | back to summary |
|---|---|
| pack-priv static File[] getRepoRoots(final boolean supportLayersAndAddOns) | |
| iterateModules | back to summary |
|---|---|
| public Iterator Overrides default org. | |
| parseModuleXmlFile | back to summary |
|---|---|
| public static ModuleSpec parseModuleXmlFile(final ModuleIdentifier identifier, final ModuleLoader delegateLoader, final File... roots) throws IOException, ModuleLoadException
Deprecated Use Parse a
| |
| parseModuleXmlFile | back to summary |
|---|---|
| public static ModuleSpec parseModuleXmlFile(final String name, final ModuleLoader delegateLoader, final File... roots) throws IOException, ModuleLoadException Parse a
| |
| parseModuleXmlFile | back to summary |
|---|---|
| pack-priv static ModuleSpec parseModuleXmlFile(final ModuleXmlParser. | |
| safeClose | back to summary |
|---|---|
| private static void safeClose(AutoCloseable closeable) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |