Class AnnotationIntrospector.AbstractIntrospectableAnnotationHandler

java.lang.Object
org.eclipse.jetty.ee11.annotations.AnnotationIntrospector.AbstractIntrospectableAnnotationHandler
All Implemented Interfaces:
AnnotationIntrospector.IntrospectableAnnotationHandler
Direct Known Subclasses:
DeclareRolesAnnotationHandler, MultiPartConfigAnnotationHandler, PostConstructAnnotationHandler, PreDestroyAnnotationHandler, ResourceAnnotationHandler, ResourcesAnnotationHandler, RunAsAnnotationHandler, ServletSecurityAnnotationHandler
Enclosing class:
AnnotationIntrospector

public abstract static class AnnotationIntrospector.AbstractIntrospectableAnnotationHandler extends Object implements AnnotationIntrospector.IntrospectableAnnotationHandler
Base class for handlers that introspect a class to find a particular annotation. A handler can optionally introspect the parent hierarchy of a class.
  • Field Details

    • _introspectAncestors

      protected boolean _introspectAncestors
    • _context

      protected WebAppContext _context
  • Constructor Details

    • AbstractIntrospectableAnnotationHandler

      public AbstractIntrospectableAnnotationHandler(boolean introspectAncestors, WebAppContext context)
  • Method Details

    • doHandle

      public abstract void doHandle(Class<?> clazz)
    • isAnnotatableServletClass

      protected static boolean isAnnotatableServletClass(Class<?> c)
      Check if the given class is permitted to have Servlet annotation.
      Parameters:
      c - the class
      Returns:
      true if the spec permits the class to have Servlet annotations, false otherwise
    • handle

      public void handle(Class<?> clazz)
      Specified by:
      handle in interface AnnotationIntrospector.IntrospectableAnnotationHandler
    • getContext

      public WebAppContext getContext()