Top Description Constructors Methods
nonapi.io.github.classgraph.classloaderhandler

pack-priv Class TomcatWebappClassLoaderBaseHandler

extends Object
implements ClassLoaderHandler
Class Inheritance
All Implemented Interfaces
nonapi.io.github.classgraph.classloaderhandler.ClassLoaderHandler
Imports
java.io.File, java.util.List, nonapi.io.github.classgraph.classpath.ClassLoaderOrder, .ClasspathOrder, nonapi.io.github.classgraph.reflection.ReflectionUtils, nonapi.io.github.classgraph.scanspec.ScanSpec, nonapi.io.github.classgraph.utils.LogNode

Extract classpath entries from the Tomcat/Catalina WebappClassLoaderBase.

Constructor Summary

AccessConstructor and Description
private
TomcatWebappClassLoaderBaseHandler()

Class cannot be constructed.

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if this ClassLoaderHandler can handle the ClassLoader.
canHandle
(final Class<?>
the ClassLoader class or one of its superclasses.
classLoaderClass
,
final LogNode
the log
log
)

Check whether this ClassLoaderHandler can handle a given ClassLoader.

public static void
findClassLoaderOrder(final ClassLoader
the ClassLoader to find the order for.
classLoader
,
final ClassLoaderOrder
a ClassLoaderOrder object to update.
classLoaderOrder
,
final LogNode
the log
log
)

Find the ClassLoader delegation order for a ClassLoader.

public static void
findClasspathOrder(final ClassLoader
the ClassLoader to find the classpath entries order for.
classLoader
,
final ClasspathOrder
a ClasspathOrder object to update.
classpathOrder
,
final ScanSpec scanSpec, final LogNode
the log.
log
)

Find the classpath entries for the associated ClassLoader.

private static boolean

Returns:

true if this classloader delegates to its parent.
isParentFirst
(final ClassLoader classLoader, final ReflectionUtils reflectionUtils)

Return true if this classloader delegates to its parent.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TomcatWebappClassLoaderBaseHandlerback to summary
private TomcatWebappClassLoaderBaseHandler()

Class cannot be constructed.

Method Detail

canHandleback to summary
public static boolean canHandle(final Class<?> classLoaderClass, final LogNode log)

Check whether this ClassLoaderHandler can handle a given ClassLoader.

Parameters
classLoaderClass:Class<?>

the ClassLoader class or one of its superclasses.

log:LogNode

the log

Returns:boolean

true if this ClassLoaderHandler can handle the ClassLoader.

findClassLoaderOrderback to summary
public static void findClassLoaderOrder(final ClassLoader classLoader, final ClassLoaderOrder classLoaderOrder, final LogNode log)

Find the ClassLoader delegation order for a ClassLoader.

Parameters
classLoader:ClassLoader

the ClassLoader to find the order for.

classLoaderOrder:ClassLoaderOrder

a ClassLoaderOrder object to update.

log:LogNode

the log

findClasspathOrderback to summary
public static void findClasspathOrder(final ClassLoader classLoader, final ClasspathOrder classpathOrder, final ScanSpec scanSpec, final LogNode log)

Find the classpath entries for the associated ClassLoader.

Parameters
classLoader:ClassLoader

the ClassLoader to find the classpath entries order for.

classpathOrder:ClasspathOrder

a ClasspathOrder object to update.

scanSpec:ScanSpec

the ScanSpec.

log:LogNode

the log.

isParentFirstback to summary
private static boolean isParentFirst(final ClassLoader classLoader, final ReflectionUtils reflectionUtils)

Return true if this classloader delegates to its parent.

Parameters
classLoader:ClassLoader

the ClassLoader.

Returns:boolean

true if this classloader delegates to its parent.