Top Description Constructors Methods
org.jboss.modules

public abstract Class AbstractLocalLoader

extends Object
implements LocalLoader
Class Inheritance
All Implemented Interfaces
org.jboss.modules.LocalLoader
Imports
java.util.List

An abstract local loader implementation.
Author
David M. Lloyd

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the class, or null if there is no local class with this name
loadClassLocal
(final 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

Returns:

the package, or null if there is no local package with this name
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>

Returns:

the resource or resources, or an empty list if there is no local resource with this name
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

Constructor Detail

AbstractLocalLoaderback to summary
public AbstractLocalLoader()

Method Detail

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

Implements org.jboss.modules.LocalLoader.loadClassLocal.

Load a class which is locally defined by this loader. Returns null by default.

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.

Load a package which is locally defined by this loader. Returns null by default.

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.

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

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