Package org.jboss.modules
Class NamedClassLoader
java.lang.Object
java.lang.ClassLoader
org.jboss.modules.NamedClassLoader
- Direct Known Subclasses:
ConcurrentClassLoader
A class loader that may be named. On Java 9 and later, the name will be propagated up to the JVM.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNamedClassLoader(ClassLoader parent, String name) Construct a new instance.protectedNamedClassLoader(String name) Construct a new instance. -
Method Summary
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
NamedClassLoader
Construct a new instance.- Parameters:
parent- the parent class loader (may benullto indicate that the platform class loader should be used)name- the name, ornullif the class loader has no name
-
NamedClassLoader
Construct a new instance.- Parameters:
name- the name, ornullif the class loader has no name
-
-
Method Details
-
getName
Get the name of this class loader.- Overrides:
getNamein classClassLoader- Returns:
- the name of this class loader, or
nullif it is unnamed
-