Top Description Constructors Methods
org.jboss.modules

public abstract Class NamedClassLoader

extends ClassLoader
Class Inheritance
Known Direct Subclasses
org.jboss.modules.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

AccessConstructor and Description
protected
NamedClassLoader(final ClassLoader
the parent class loader (may be null to indicate that the platform class loader should be used)
parent
,
final String
the name, or null if the class loader has no name
name
)

Construct a new instance.

protected
NamedClassLoader(final String
the name, or null if the class loader has no name
name
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of this class loader, or null if it is unnamed
getName
()

Overrides java.lang.ClassLoader.getName.

Get the name of this class loader.
Inherited from java.lang.ClassLoader:
clearAssertionStatusdefineClassdefineClassdefineClassdefineClassdefinePackagefindClassfindClassfindLibraryfindLoadedClassfindResourcefindResourcefindResourcesfindSystemClassgetClassLoadingLockgetDefinedPackagegetDefinedPackagesgetPackagegetPackagesgetParentgetPlatformClassLoadergetResourcegetResourceAsStreamgetResourcesgetSystemClassLoadergetSystemResourcegetSystemResourceAsStreamgetSystemResourcesgetUnnamedModuleisRegisteredAsParallelCapableloadClassloadClassregisterAsParallelCapableresolveClassresourcessetClassAssertionStatussetDefaultAssertionStatussetPackageAssertionStatussetSigners

Constructor Detail

NamedClassLoaderback to summary
protected NamedClassLoader(final ClassLoader parent, final String name)

Construct a new instance.

Parameters
parent:ClassLoader

the parent class loader (may be null to indicate that the platform class loader should be used)

name:String

the name, or null if the class loader has no name

NamedClassLoaderback to summary
protected NamedClassLoader(final String name)

Construct a new instance.

Parameters
name:String

the name, or null if the class loader has no name

Method Detail

getNameback to summary
public String getName()

Overrides java.lang.ClassLoader.getName.

Get the name of this class loader.

Returns:String

the name of this class loader, or null if it is unnamed