Class AnnotationScanInitializer

java.lang.Object
cloud.piranha.webapp.annotationscan.AnnotationScanInitializer
All Implemented Interfaces:
ServletContainerInitializer

public class AnnotationScanInitializer
extends java.lang.Object
implements ServletContainerInitializer
This ServletContainerInitializer deep scans for annotations and adds them to the DefaultAnnotationManager.
Author:
Arjan Tijms, Manfred Riem ([email protected])
  • Constructor Summary

    Constructors 
    Constructor Description
    AnnotationScanInitializer()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Class<?> loadClass​(java.lang.ClassLoader classLoader, java.lang.String className)
    Load the class using the given class loader.
    void onStartup​(java.util.Set<java.lang.Class<?>> classes, ServletContext servletContext)
    On startup.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • onStartup

      public void onStartup​(java.util.Set<java.lang.Class<?>> classes, ServletContext servletContext) throws ServletException
      On startup.
      Specified by:
      onStartup in interface ServletContainerInitializer
      Parameters:
      classes - the classes.
      servletContext - the servlet context.
      Throws:
      ServletException - when a servlet error occurs.
    • loadClass

      public java.lang.Class<?> loadClass​(java.lang.ClassLoader classLoader, java.lang.String className)
      Load the class using the given class loader.
      Parameters:
      classLoader - the class loader.
      className - the class name.
      Returns:
      the class.