Class LayeredModulePathFactory

java.lang.Object
org.jboss.modules.LayeredModulePathFactory

class LayeredModulePathFactory extends Object
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.
  • Field Details

  • Constructor Details

    • LayeredModulePathFactory

      LayeredModulePathFactory()
  • Method Details

    • resolveLayeredModulePath

      static File[] resolveLayeredModulePath(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. If so, the layers identified in layers.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

      private static LayeredModulePathFactory.LayersConfig getLayersConfig(File repoRoot)
    • loadOverlays

      static void loadOverlays(File layeringRoot, List<File> path)
      Load the overlays for each layer.
      Parameters:
      layeringRoot - the layer root
      path - the module path
    • readRefs

      public static List<String> readRefs(File file) throws IOException
      Throws:
      IOException
    • readRefs

      static List<String> readRefs(InputStream is) throws IOException
      Throws:
      IOException
    • readLine

      static boolean readLine(InputStream is, StringBuffer buffer) throws IOException
      Throws:
      IOException