Top Description Methods
org.jboss.modules

public Interface LocalLoader

Known Direct Subinterfaces
org.jboss.modules.IterableLocalLoader
Known Direct Implementers
org.jboss.modules.AbstractLocalLoader, org.jboss.modules.ClassLoaderLocalLoader, org.jboss.modules.FilteredLocalLoader, org.jboss.modules.JDKModuleFinder.JDKModuleLoader
Imports
java.util.List

A loader which implements the local part of a module.

Thread safety warning! The loader must never call into a class loader (or any other object) which may take locks and subsequently delegate to a module class loader. This will cause deadlocks and other hard-to-debug concurrency problems.

Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the class, or null if there is no local class with this name
loadClassLocal
(String
the class name
name
,
boolean
true to resolve the class
resolve
)

Load a class which is locally defined by this loader.

public Package

Returns:

the package, or null if there is no local package with this name
loadPackageLocal
(String
the package name
name
)

Load a package which is locally defined by this loader.

public List<Resource>

Returns:

the resource or resources, or an empty list if there is no local resource with this name
loadResourceLocal
(String
the resource path
name
)

Load a resource which is locally defined by this loader.

Method Detail

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

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(String name)

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(String name)

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