Class TomcatWebappClassLoaderBaseHandler
java.lang.Object
nonapi.io.github.classgraph.classloaderhandler.TomcatWebappClassLoaderBaseHandler
- All Implemented Interfaces:
ClassLoaderHandler
Extract classpath entries from the Tomcat/Catalina WebappClassLoaderBase.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClass cannot be constructed. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCheck whether thisClassLoaderHandlercan handle a givenClassLoader.static voidfindClassLoaderOrder(ClassLoader classLoader, ClassLoaderOrder classLoaderOrder, LogNode log) Find theClassLoaderdelegation order for aClassLoader.static voidfindClasspathOrder(ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log) Find the classpath entries for the associatedClassLoader.private static booleanisParentFirst(ClassLoader classLoader, ReflectionUtils reflectionUtils) Return true if this classloader delegates to its parent.
-
Constructor Details
-
TomcatWebappClassLoaderBaseHandler
private TomcatWebappClassLoaderBaseHandler()Class cannot be constructed.
-
-
Method Details
-
canHandle
Check whether thisClassLoaderHandlercan handle a givenClassLoader.- Parameters:
classLoaderClass- theClassLoaderclass or one of its superclasses.log- the log- Returns:
- true if this
ClassLoaderHandlercan handle theClassLoader.
-
isParentFirst
Return true if this classloader delegates to its parent.- Parameters:
classLoader- theClassLoader.- Returns:
- true if this classloader delegates to its parent.
-
findClassLoaderOrder
public static void findClassLoaderOrder(ClassLoader classLoader, ClassLoaderOrder classLoaderOrder, LogNode log) Find theClassLoaderdelegation order for aClassLoader.- Parameters:
classLoader- theClassLoaderto find the order for.classLoaderOrder- aClassLoaderOrderobject to update.log- the log
-
findClasspathOrder
public static void findClasspathOrder(ClassLoader classLoader, ClasspathOrder classpathOrder, ScanSpec scanSpec, LogNode log) Find the classpath entries for the associatedClassLoader.- Parameters:
classLoader- theClassLoaderto find the classpath entries order for.classpathOrder- aClasspathOrderobject to update.scanSpec- theScanSpec.log- the log.
-