org.apache.tomee.catalina
Class ProcessAnnotatedListenersListener

java.lang.Object
  extended by org.apache.tomee.catalina.LegacyAnnotationProcessorListener
      extended by org.apache.tomee.catalina.ProcessAnnotatedListenersListener
All Implemented Interfaces:
org.apache.catalina.ContainerListener

public class ProcessAnnotatedListenersListener
extends LegacyAnnotationProcessorListener
implements org.apache.catalina.ContainerListener

The StandardContext only calls these events for the listeners in the getApplicationLifecycleListeners() list and not for any listeners in the getApplicationEventListeners() list. This is a big pain as we need to do annotation processing for both. The code gets a bit tricky as a result.

Note this class only pertains to Tomcat 5.5.x and before, not 6.0.x and after.

Version:
$Rev$ $Date$

Field Summary
 
Fields inherited from class org.apache.tomee.catalina.LegacyAnnotationProcessorListener
annotationProcessor
 
Constructor Summary
ProcessAnnotatedListenersListener(LegacyAnnotationProcessor annotationProcessor)
           
 
Method Summary
 void containerEvent(org.apache.catalina.ContainerEvent event)
           
 
Methods inherited from class org.apache.tomee.catalina.LegacyAnnotationProcessorListener
postConstruct, preDestroy, processAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessAnnotatedListenersListener

public ProcessAnnotatedListenersListener(LegacyAnnotationProcessor annotationProcessor)
Method Detail

containerEvent

public void containerEvent(org.apache.catalina.ContainerEvent event)
Specified by:
containerEvent in interface org.apache.catalina.ContainerListener


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.