class LayeredModulePathFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
LayeredModulePathFactory.LayersConfig |
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
OVERLAYS |
| Constructor and Description |
|---|
LayeredModulePathFactory() |
| Modifier and Type | Method and Description |
|---|---|
private static LayeredModulePathFactory.LayersConfig |
getLayersConfig(java.io.File repoRoot) |
(package private) static void |
loadOverlays(java.io.File layeringRoot,
java.util.List<java.io.File> path)
Load the overlays for each layer.
|
(package private) static boolean |
readLine(java.io.InputStream is,
java.lang.StringBuffer buffer) |
static java.util.List<java.lang.String> |
readRefs(java.io.File file) |
(package private) static java.util.List<java.lang.String> |
readRefs(java.io.InputStream is) |
(package private) static java.io.File[] |
resolveLayeredModulePath(java.io.File... modulePath)
Inspects each element in the given
modulePath to see if it includes a layers.conf file
and/or a standard directory structure with child directories system/layers and, optionally,
system/add-ons. |
private static final java.lang.String OVERLAYS
static java.io.File[] resolveLayeredModulePath(java.io.File... modulePath)
modulePath to see if it includes a layers.conf file
and/or a standard directory structure with child directories system/layers and, optionally,
system/add-ons. If so, the layers identified in layers.conf are added to the module pathmodulePath - the filesystem locations that make up the standard module path, each of which is to be
checked for the presence of layers and add-onsprivate static LayeredModulePathFactory.LayersConfig getLayersConfig(java.io.File repoRoot)
static void loadOverlays(java.io.File layeringRoot,
java.util.List<java.io.File> path)
layeringRoot - the layer rootpath - the module pathpublic static java.util.List<java.lang.String> readRefs(java.io.File file)
throws java.io.IOException
java.io.IOExceptionstatic java.util.List<java.lang.String> readRefs(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionstatic boolean readLine(java.io.InputStream is,
java.lang.StringBuffer buffer)
throws java.io.IOException
java.io.IOException