Package org.jboss.modules
Class LocalModuleLoader
- java.lang.Object
-
- org.jboss.modules.ModuleLoader
-
- org.jboss.modules.DelegatingModuleLoader
-
- org.jboss.modules.LocalModuleLoader
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public final class LocalModuleLoader extends DelegatingModuleLoader implements java.lang.AutoCloseable
A local filesystem-backed module loader.- Author:
- John Bailey, David M. Lloyd
-
-
Field Summary
-
Fields inherited from class org.jboss.modules.ModuleLoader
NO_FINDERS
-
-
Constructor Summary
Constructors Constructor Description LocalModuleLoader()Construct a new instance, using themodule.pathsystem property or theJAVA_MODULEPATHenvironment variable to get the list of module repository roots.LocalModuleLoader(java.io.File[] repoRoots)Construct a new instance.LocalModuleLoader(java.io.File[] repoRoots, PathFilter pathFilter)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close this module loader and release all backing files.java.lang.StringtoString()Get the string representation of this module loader.-
Methods inherited from class org.jboss.modules.DelegatingModuleLoader
preloadModule
-
Methods inherited from class org.jboss.modules.ModuleLoader
findLoadedModuleLocal, findLoadedModuleLocal, findModule, findModule, forClass, forClassLoader, getDependencies, getFinders, getModuleDescription, installMBeanServer, iterateModules, iterateModules, loadModule, loadModule, loadModuleLocal, loadModuleLocal, preloadExportedModule, preloadExportedModule, preloadModule, preloadModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocal, unloadModuleLocal
-
-
-
-
Constructor Detail
-
LocalModuleLoader
public LocalModuleLoader(java.io.File[] repoRoots)
Construct a new instance.- Parameters:
repoRoots- the array of repository roots to look for modules
-
LocalModuleLoader
public LocalModuleLoader(java.io.File[] repoRoots, PathFilter pathFilter)Construct a new instance.- Parameters:
repoRoots- the array of repository roots to look for modulespathFilter- the path filter to apply to roots
-
LocalModuleLoader
public LocalModuleLoader()
Construct a new instance, using themodule.pathsystem property or theJAVA_MODULEPATHenvironment variable to get the list of module repository roots.
-
-
Method Detail
-
toString
public java.lang.String toString()
Description copied from class:ModuleLoaderGet the string representation of this module loader.- Overrides:
toStringin classModuleLoader- Returns:
- the string representation
-
close
public void close()
Close this module loader and release all backing files. Note that subsequent load attempts will fail with an error after this method is called.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-