Package org.jboss.modules
Class AbstractLocalLoader
- java.lang.Object
-
- org.jboss.modules.AbstractLocalLoader
-
- All Implemented Interfaces:
LocalLoader
public abstract class AbstractLocalLoader extends java.lang.Object implements LocalLoader
An abstract local loader implementation.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description AbstractLocalLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
loadClassLocal(java.lang.String name, boolean resolve)
Load a class which is locally defined by this loader.java.lang.Package
loadPackageLocal(java.lang.String name)
Load a package which is locally defined by this loader.java.util.List<Resource>
loadResourceLocal(java.lang.String name)
Load a resource which is locally defined by this loader.
-
-
-
Method Detail
-
loadClassLocal
public java.lang.Class<?> loadClassLocal(java.lang.String name, boolean resolve)
Load a class which is locally defined by this loader. Returnsnull
by default.- Specified by:
loadClassLocal
in interfaceLocalLoader
- Parameters:
name
- the class nameresolve
-true
to resolve the class- Returns:
- the class, or
null
if there is no local class with this name
-
loadPackageLocal
public java.lang.Package loadPackageLocal(java.lang.String name)
Load a package which is locally defined by this loader. Returnsnull
by default.- Specified by:
loadPackageLocal
in interfaceLocalLoader
- Parameters:
name
- the package name- Returns:
- the package, or
null
if there is no local package with this name
-
loadResourceLocal
public java.util.List<Resource> loadResourceLocal(java.lang.String name)
Load a resource which is locally defined by this loader. The given name is a path separated by "/
" characters. Returnsnull
by default.- Specified by:
loadResourceLocal
in interfaceLocalLoader
- Parameters:
name
- the resource path- Returns:
- the resource or resources, or an empty list if there is no local resource with this name
-
-