Package org.jboss.modules
Class LayeredModulePathFactory
java.lang.Object
org.jboss.modules.LayeredModulePathFactory
Provides a module path that includes entries for any "layer" and "add-on" directory structures found
within the regular items in the provided module path.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static LayeredModulePathFactory.LayersConfig
getLayersConfig
(File repoRoot) (package private) static void
loadOverlays
(File layeringRoot, List<File> path) Load the overlays for each layer.(package private) static boolean
readLine
(InputStream is, StringBuffer buffer) readRefs
(InputStream is) (package private) static File[]
resolveLayeredModulePath
(File... modulePath) Inspects each element in the givenmodulePath
to see if it includes alayers.conf
file and/or a standard directory structure with child directoriessystem/layers
and, optionally,system/add-ons
.
-
Field Details
-
OVERLAYS
- See Also:
-
-
Constructor Details
-
LayeredModulePathFactory
LayeredModulePathFactory()
-
-
Method Details
-
resolveLayeredModulePath
Inspects each element in the givenmodulePath
to see if it includes alayers.conf
file and/or a standard directory structure with child directoriessystem/layers
and, optionally,system/add-ons
. If so, the layers identified inlayers.conf
are added to the module path- Parameters:
modulePath
- the filesystem locations that make up the standard module path, each of which is to be checked for the presence of layers and add-ons- Returns:
- a new module path, including any layers and add-ons, if found
-
getLayersConfig
-
loadOverlays
Load the overlays for each layer.- Parameters:
layeringRoot
- the layer rootpath
- the module path
-
readRefs
- Throws:
IOException
-
readRefs
- Throws:
IOException
-
readLine
- Throws:
IOException
-