Class AnnotationDecorator

  • All Implemented Interfaces:
    org.eclipse.jetty.util.Decorator

    public class AnnotationDecorator
    extends java.lang.Object
    implements org.eclipse.jetty.util.Decorator
    AnnotationDecorator
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationDecorator​(org.eclipse.jetty.webapp.WebAppContext context)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object decorate​(java.lang.Object o)  
      void destroy​(java.lang.Object o)  
      protected void introspect​(java.lang.Object o, java.lang.Object metaInfo)
      Look for annotations that can be discovered with introspection: Resource Resources RunAs PostConstruct PreDestroy DeclareRoles MultiPart ServletSecurity
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _context

        protected org.eclipse.jetty.webapp.WebAppContext _context
    • Constructor Detail

      • AnnotationDecorator

        public AnnotationDecorator​(org.eclipse.jetty.webapp.WebAppContext context)
    • Method Detail

      • introspect

        protected void introspect​(java.lang.Object o,
                                  java.lang.Object metaInfo)
        Look for annotations that can be discovered with introspection:
        • Resource
        • Resources
        • RunAs
        • PostConstruct
        • PreDestroy
        • DeclareRoles
        • MultiPart
        • ServletSecurity
        Parameters:
        o - the object to introspect
        metaInfo - information about the object to introspect
      • decorate

        public java.lang.Object decorate​(java.lang.Object o)
        Specified by:
        decorate in interface org.eclipse.jetty.util.Decorator
      • destroy

        public void destroy​(java.lang.Object o)
        Specified by:
        destroy in interface org.eclipse.jetty.util.Decorator