Class AnnotationScanInitializer
java.lang.Object
cloud.piranha.extension.annotationscan.AnnotationScanInitializer
- All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer
public class AnnotationScanInitializer
extends Object
implements jakarta.servlet.ServletContainerInitializer
This ServletContainerInitializer deep scans for annotations and adds them to
the StandardAnnotationScanAnnotationManager.
- Author:
- Arjan Tijms, Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AnnotationScanInitializer
public AnnotationScanInitializer()
-
-
Method Details
-
onStartup
public void onStartup(Set<Class<?>> classes, jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException On startup.- Specified by:
onStartup
in interfacejakarta.servlet.ServletContainerInitializer
- Parameters:
classes
- the classes.servletContext
- the servlet context.- Throws:
jakarta.servlet.ServletException
- when a servlet error occurs.
-
loadClass
Load the class using the given class loader.- Parameters:
classLoader
- the class loader.className
- the class name.- Returns:
- the class.
-