Class ContainerInitializerAnnotationHandler

java.lang.Object
org.eclipse.jetty.annotations.AnnotationParser.AbstractHandler
org.eclipse.jetty.ee11.annotations.ContainerInitializerAnnotationHandler
All Implemented Interfaces:
org.eclipse.jetty.annotations.AnnotationParser.Handler

public class ContainerInitializerAnnotationHandler extends org.eclipse.jetty.annotations.AnnotationParser.AbstractHandler
Discovers classes that contain the specified annotation, either at class or method level. The specified annotation is derived from an @HandlesTypes on a ServletContainerInitializer class.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerInitializerAnnotationHandler(org.eclipse.jetty.ee11.servlet.ServletContainerInitializerHolder holder, Class<?> annotation)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(org.eclipse.jetty.annotations.AnnotationParser.ClassInfo info, String annotationName)
    Handle finding a class that is annotated with the annotation we were constructed with.
    void
    handle(org.eclipse.jetty.annotations.AnnotationParser.FieldInfo info, String annotationName)
    Handle finding a field that is annotated with the annotation we were constructed with.
    void
    handle(org.eclipse.jetty.annotations.AnnotationParser.MethodInfo info, String annotationName)
    Handle finding a method that is annotated with the annotation we were constructed with.

    Methods inherited from class org.eclipse.jetty.annotations.AnnotationParser.AbstractHandler

    handle, handle, handle

    Methods inherited from class Object

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

    • ContainerInitializerAnnotationHandler

      public ContainerInitializerAnnotationHandler(org.eclipse.jetty.ee11.servlet.ServletContainerInitializerHolder holder, Class<?> annotation)
  • Method Details

    • handle

      public void handle(org.eclipse.jetty.annotations.AnnotationParser.ClassInfo info, String annotationName)
      Handle finding a class that is annotated with the annotation we were constructed with.
      Specified by:
      handle in interface org.eclipse.jetty.annotations.AnnotationParser.Handler
      Overrides:
      handle in class org.eclipse.jetty.annotations.AnnotationParser.AbstractHandler
      See Also:
      • AnnotationParser.Handler.handle(AnnotationParser.ClassInfo, String)
    • handle

      public void handle(org.eclipse.jetty.annotations.AnnotationParser.FieldInfo info, String annotationName)
      Handle finding a field that is annotated with the annotation we were constructed with.
      Specified by:
      handle in interface org.eclipse.jetty.annotations.AnnotationParser.Handler
      Overrides:
      handle in class org.eclipse.jetty.annotations.AnnotationParser.AbstractHandler
      See Also:
      • AnnotationParser.Handler.handle(AnnotationParser.FieldInfo, String)
    • handle

      public void handle(org.eclipse.jetty.annotations.AnnotationParser.MethodInfo info, String annotationName)
      Handle finding a method that is annotated with the annotation we were constructed with.
      Specified by:
      handle in interface org.eclipse.jetty.annotations.AnnotationParser.Handler
      Overrides:
      handle in class org.eclipse.jetty.annotations.AnnotationParser.AbstractHandler
      See Also:
      • AnnotationParser.Handler.handle(AnnotationParser.MethodInfo, String)