Top Description Constructors Methods
org.jboss.modules

public final Class LocalModuleLoader

extends DelegatingModuleLoader
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Imports
java.io.File, org.jboss.modules.filter.PathFilter, .PathFilters

A local filesystem-backed module loader.
Authors
John Bailey, David M. Lloyd

Constructor Summary

AccessConstructor and Description
public
LocalModuleLoader(final File[]
the array of repository roots to look for modules
repoRoots
)

Construct a new instance.

public
LocalModuleLoader(final File[]
the array of repository roots to look for modules
repoRoots
,
final PathFilter
the path filter to apply to roots
pathFilter
)

Construct a new instance.

public
LocalModuleLoader()

Construct a new instance, using the module.path system property or the JAVA_MODULEPATH environment variable to get the list of module repository roots.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Close this module loader and release all backing files.
public String
toString()

Overrides org.jboss.modules.ModuleLoader.toString.

Get the string representation of this module loader.
Inherited from org.jboss.modules.DelegatingModuleLoader:
preloadModule

Constructor Detail

LocalModuleLoaderback to summary
public LocalModuleLoader(final File[] repoRoots)

Construct a new instance.

Parameters
repoRoots:File[]

the array of repository roots to look for modules

LocalModuleLoaderback to summary
public LocalModuleLoader(final File[] repoRoots, final PathFilter pathFilter)

Construct a new instance.

Parameters
repoRoots:File[]

the array of repository roots to look for modules

pathFilter:PathFilter

the path filter to apply to roots

LocalModuleLoaderback to summary
public LocalModuleLoader()

Construct a new instance, using the module.path system property or the JAVA_MODULEPATH environment variable to get the list of module repository roots.

Method Detail

closeback to summary
public void close()

Implements java.lang.AutoCloseable.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.

toStringback to summary
public String toString()

Overrides org.jboss.modules.ModuleLoader.toString.

Doc from org.jboss.modules.ModuleLoader.toString.

Get the string representation of this module loader.

Returns:String

the string representation