Class AnnotationScanInitializer
java.lang.Object
cloud.piranha.webapp.annotationscan.AnnotationScanInitializer
- All Implemented Interfaces:
ServletContainerInitializer
This ServletContainerInitializer deep scans for annotations and adds them to
the DefaultAnnotationManager.
- Author:
- Arjan Tijms, Manfred Riem ([email protected])
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
loadClass(ClassLoader classLoader, String className)
Load the class using the given class loader.void
onStartup(Set<Class<?>> classes, ServletContext servletContext)
On startup.
-
Constructor Details
-
AnnotationScanInitializer
public AnnotationScanInitializer()
-
-
Method Details
-
onStartup
public void onStartup(Set<Class<?>> classes, ServletContext servletContext) throws ServletExceptionOn startup.- Specified by:
onStartup
in interfaceServletContainerInitializer
- Parameters:
classes
- the classes.servletContext
- the servlet context.- Throws:
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.
-