Package org.jboss.modules
Class AbstractLocalLoader
java.lang.Object
org.jboss.modules.AbstractLocalLoader
- All Implemented Interfaces:
LocalLoader
An abstract local loader implementation.
- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> loadClassLocal(String name, boolean resolve) Load a class which is locally defined by this loader.loadPackageLocal(String name) Load a package which is locally defined by this loader.loadResourceLocal(String name) Load a resource which is locally defined by this loader.
-
Constructor Details
-
AbstractLocalLoader
public AbstractLocalLoader()
-
-
Method Details
-
loadClassLocal
Load a class which is locally defined by this loader. Returnsnullby default.- Specified by:
loadClassLocalin interfaceLocalLoader- Parameters:
name- the class nameresolve-trueto resolve the class- Returns:
- the class, or
nullif there is no local class with this name
-
loadPackageLocal
Load a package which is locally defined by this loader. Returnsnullby default.- Specified by:
loadPackageLocalin interfaceLocalLoader- Parameters:
name- the package name- Returns:
- the package, or
nullif there is no local package with this name
-
loadResourceLocal
Load a resource which is locally defined by this loader. The given name is a path separated by "/" characters. Returnsnullby default.- Specified by:
loadResourceLocalin interfaceLocalLoader- Parameters:
name- the resource path- Returns:
- the resource or resources, or an empty list if there is no local resource with this name
-