Top Inners Fields Constructors Methods
org.jboss.modules

public final Class JDKModuleFinder

extends Object
implements IterableModuleFinder
Class Inheritance
All Implemented Interfaces
org.jboss.modules.IterableModuleFinder, org.jboss.modules.ModuleFinder
Static Imports
java.security.AccessController.doPrivileged

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final JDKModuleFinder
private final ModuleLayer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ModuleSpec
findModule(final String
the module name
name
,
final ModuleLoader
the module loader from which dependencies should be resolved
delegateLoader
)

Overrides default org.jboss.modules.ModuleFinder.findModule.

Find a module specification for the given name.
public static JDKModuleFinder
public Iterator<String>
iterateModules(final String
the identifier to start with, or null to iterate all modules; ignored if this module loader does not have a concept of nested modules
baseName
,
final boolean
true to find recursively nested modules, false to only find immediately nested modules; ignored if this module finder does not have a concept of nested modules
recursive
)

Overrides default org.jboss.modules.IterableModuleFinder.iterateModules.

Iterate the modules which can be located via this module finder.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

INSTANCEback to summary
private static final JDKModuleFinder INSTANCE
layerback to summary
private final ModuleLayer layer

Constructor Detail

JDKModuleFinderback to summary
private JDKModuleFinder()

Method Detail

findModuleback to summary
public ModuleSpec findModule(final String name, final ModuleLoader delegateLoader)

Overrides default org.jboss.modules.ModuleFinder.findModule.

Doc from org.jboss.modules.ModuleFinder.findModule.

Find a module specification for the given name. The default implementation delegates to the legacy findModule(ModuleIdentifier, ModuleLoader) method.

Parameters
name:String

the module name

delegateLoader:ModuleLoader

the module loader from which dependencies should be resolved

Returns:ModuleSpec

the module specification, or null if no specification is found for this identifier

getInstanceback to summary
public static JDKModuleFinder getInstance()
iterateModulesback to summary
public Iterator<String> iterateModules(final String baseName, final boolean recursive)

Overrides default org.jboss.modules.IterableModuleFinder.iterateModules.

Doc from org.jboss.modules.IterableModuleFinder.iterateModules.

Iterate the modules which can be located via this module finder.

Parameters
baseName:String

the identifier to start with, or null to iterate all modules; ignored if this module loader does not have a concept of nested modules

recursive:boolean

true to find recursively nested modules, false to only find immediately nested modules; ignored if this module finder does not have a concept of nested modules

Returns:Iterator<String>

an iterator for the modules in this module finder

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

org.jboss.modules back to summary

pack-priv Class JDKModuleFinder.JDKModuleLoader

extends Object
implements LocalLoader
Class Inheritance
All Implemented Interfaces
org.jboss.modules.LocalLoader

Field Summary

Modifier and TypeField and Description
private final ClassLoader
private final Module
private final Set<String>

Constructor Summary

AccessConstructor and Description
pack-priv
JDKModuleLoader(final Module module, final Set<String> packages)

Method Summary

Modifier and TypeMethod and Description
public Class<?>
loadClassLocal(String
the class name
name
,
final boolean
true to resolve the class
resolve
)

Implements org.jboss.modules.LocalLoader.loadClassLocal.

Load a class which is locally defined by this loader.
public Package
loadPackageLocal(final String
the package name
name
)

Implements org.jboss.modules.LocalLoader.loadPackageLocal.

Load a package which is locally defined by this loader.
public List<Resource>
loadResourceLocal(final String
the resource path
name
)

Implements org.jboss.modules.LocalLoader.loadResourceLocal.

Load a resource which is locally defined by this loader.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classLoaderback to summary
private final ClassLoader classLoader
moduleback to summary
private final Module module
packagesback to summary
private final Set<String> packages

Constructor Detail

JDKModuleLoaderback to summary
pack-priv JDKModuleLoader(final Module module, final Set<String> packages)

Method Detail

loadClassLocalback to summary
public Class<?> loadClassLocal(String name, final boolean resolve)

Implements org.jboss.modules.LocalLoader.loadClassLocal.

Doc from org.jboss.modules.LocalLoader.loadClassLocal.

Load a class which is locally defined by this loader.

Parameters
name:String

the class name

resolve:boolean

true to resolve the class

Returns:Class<?>

the class, or null if there is no local class with this name

loadPackageLocalback to summary
public Package loadPackageLocal(final String name)

Implements org.jboss.modules.LocalLoader.loadPackageLocal.

Doc from org.jboss.modules.LocalLoader.loadPackageLocal.

Load a package which is locally defined by this loader.

Parameters
name:String

the package name

Returns:Package

the package, or null if there is no local package with this name

loadResourceLocalback to summary
public List<Resource> loadResourceLocal(final String name)

Implements org.jboss.modules.LocalLoader.loadResourceLocal.

Doc from org.jboss.modules.LocalLoader.loadResourceLocal.

Load a resource which is locally defined by this loader. The given name is a path separated by "/" characters.

Parameters
name:String

the resource path

Returns:List<Resource>

the resource or resources, or an empty list if there is no local resource with this name