|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.modules.ModuleLoader
org.jboss.modules.LocalModuleLoader
public final class LocalModuleLoader
A local filesystem-backed module loader.
| Constructor Summary | |
|---|---|
LocalModuleLoader()
Construct a new instance, using the module.path system property or the MODULEPATH environment variable
to get the list of module repository roots. |
|
LocalModuleLoader(File[] repoRoots)
Construct a new instance. |
|
LocalModuleLoader(File[] repoRoots,
PathFilter pathFilter)
Construct a new instance. |
|
| Method Summary | |
|---|---|
protected ModuleSpec |
findModule(ModuleIdentifier moduleIdentifier)
Find a Module's specification in this ModuleLoader by its identifier. |
protected Module |
preloadModule(ModuleIdentifier identifier)
Preload a module based on an identifier. |
String |
toString()
Get the string representation of this module loader. |
| Methods inherited from class org.jboss.modules.ModuleLoader |
|---|
findLoadedModuleLocal, forClass, forClassLoader, loadModule, loadModuleLocal, preloadExportedModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalModuleLoader(File[] repoRoots)
repoRoots - the array of repository roots to look for modules
public LocalModuleLoader(File[] repoRoots,
PathFilter pathFilter)
repoRoots - the array of repository roots to look for modulespathFilter - the path filter to apply to rootspublic LocalModuleLoader()
module.path system property or the MODULEPATH environment variable
to get the list of module repository roots.
| Method Detail |
|---|
protected Module preloadModule(ModuleIdentifier identifier)
throws ModuleLoadException
ModuleLoader.loadModuleLocal(ModuleIdentifier). A delegating module loader may delegate to the appropriate module
loader based on loader-specific criteria (via the ModuleLoader.preloadModule(ModuleIdentifier, ModuleLoader) method).
preloadModule in class ModuleLoaderidentifier - the module identifier
null if the module is not found
ModuleLoadException - if an error occurs
protected ModuleSpec findModule(ModuleIdentifier moduleIdentifier)
throws ModuleLoadException
null.
If the module is found but some problem occurred (for example, a transitive dependency failed to load) then this
method should throw a ModuleLoadException of the relevant type.
findModule in class ModuleLoadermoduleIdentifier - The modules Identifier
null if no module is found with the given identifier
ModuleLoadException - if any problems occur finding the modulepublic String toString()
ModuleLoader
toString in class ModuleLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||