Package org.jboss.modules
Class ClassLoaderLocalLoader
java.lang.Object
org.jboss.modules.ClassLoaderLocalLoader
- All Implemented Interfaces:
LocalLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassLoader
private static final Method
(package private) static final ClassLoaderLocalLoader
-
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.
-
Field Details
-
SYSTEM
-
getPackage
-
classLoader
-
-
Constructor Details
-
ClassLoaderLocalLoader
ClassLoaderLocalLoader(ClassLoader classLoader) Construct a new instance.- Parameters:
classLoader
- the classloader to which we delegate
-
-
Method Details
-
loadClassLocal
Description copied from interface:LocalLoader
Load a class which is locally defined by this loader.- 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
Description copied from interface:LocalLoader
Load a package which is locally defined by this loader.- 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
Description copied from interface:LocalLoader
Load a resource which is locally defined by this loader. The given name is a path separated by "/
" characters.- 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
-