org.eclipse.jetty.annotations
Class AnnotationProcessor

java.lang.Object
  extended by org.eclipse.jetty.annotations.AnnotationProcessor

public class AnnotationProcessor
extends Object

AnnotationProcessor Act on the annotations discovered in the webapp.


Constructor Summary
AnnotationProcessor(WebAppContext webApp, AnnotationFinder finder)
           
 
Method Summary
 List getFilterMappings()
           
 List getFilters()
           
 List getListeners()
           
 List getServletMappings()
           
 List getServlets()
           
protected static String normalizePattern(String p)
           
 void process()
           
 void processClassResourceAnnotations()
          Class level Resource annotations declare a name in the environment that will be looked up at runtime.
 void processFieldResourceAnnotations()
          Process @Resource annotation for a Field.
 void processFilters()
           
 void processLifeCycleCallbackAnnotations()
           
 void processListeners()
           
 void processMethodResourceAnnotations()
          Process a Resource annotation on the Methods.
 void processPreDestroyAnnotations()
           
 void processResourceAnnotations()
           
 void processResourcesAnnotations()
          Process @Resources annotation on classes
 void processRunAsAnnotations()
           
 void processServlets()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationProcessor

public AnnotationProcessor(WebAppContext webApp,
                           AnnotationFinder finder)
Method Detail

process

public void process()
             throws Exception
Throws:
Exception

processServlets

public void processServlets()
                     throws Exception
Throws:
Exception

processFilters

public void processFilters()
                    throws Exception
Throws:
Exception

processListeners

public void processListeners()
                      throws Exception
Throws:
Exception

getServlets

public List getServlets()

getServletMappings

public List getServletMappings()

getFilters

public List getFilters()

getFilterMappings

public List getFilterMappings()

getListeners

public List getListeners()

processRunAsAnnotations

public void processRunAsAnnotations()
                             throws Exception
Throws:
Exception

processLifeCycleCallbackAnnotations

public void processLifeCycleCallbackAnnotations()
                                         throws Exception
Throws:
Exception

processPreDestroyAnnotations

public void processPreDestroyAnnotations()
                                  throws Exception
Throws:
Exception

processResourcesAnnotations

public void processResourcesAnnotations()
                                 throws Exception
Process @Resources annotation on classes

Throws:
Exception

processResourceAnnotations

public void processResourceAnnotations()
                                throws Exception
Throws:
Exception

processClassResourceAnnotations

public void processClassResourceAnnotations()
                                     throws Exception
Class level Resource annotations declare a name in the environment that will be looked up at runtime. They do not specify an injection.

Throws:
Exception

processMethodResourceAnnotations

public void processMethodResourceAnnotations()
                                      throws Exception
Process a Resource annotation on the Methods. This will generate a JNDI entry, and an Injection to be processed when an instance of the class is created.

Parameters:
injections -
Throws:
Exception

processFieldResourceAnnotations

public void processFieldResourceAnnotations()
                                     throws Exception
Process @Resource annotation for a Field. These will both set up a JNDI entry and generate an Injection. Or they can be the equivalent of env-entries with default values

Parameters:
injections -
Throws:
Exception

normalizePattern

protected static String normalizePattern(String p)


Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.