org.ow2.jonas.cdi.weld.internal.tomcat
Class WeldLifeCycleListener

java.lang.Object
  extended by org.ow2.jonas.cdi.weld.internal.tomcat.WeldLifeCycleListener
All Implemented Interfaces:
org.apache.catalina.LifecycleListener

public class WeldLifeCycleListener
extends Object
implements org.apache.catalina.LifecycleListener

A WeldLifeCycleListener is a Tomcat Context Lifecycle listener. It is in charge of Weld container start-up and shut-down process for a web-app.

Author:
Guillaume Sauthier

Constructor Summary
WeldLifeCycleListener(IWeldService weld, org.jboss.weld.bootstrap.spi.Deployment deployment, WeldDeployableInfo info)
          Construct a WeldLifeCycleListener.
 
Method Summary
 void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
          React when an event is fired by the Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeldLifeCycleListener

public WeldLifeCycleListener(IWeldService weld,
                             org.jboss.weld.bootstrap.spi.Deployment deployment,
                             WeldDeployableInfo info)
Construct a WeldLifeCycleListener.

Parameters:
weld - weld service
deployment - Weld deployment instance
info - the Weld deployable infor related to the Deployable instance
Method Detail

lifecycleEvent

public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
React when an event is fired by the Context.

Specified by:
lifecycleEvent in interface org.apache.catalina.LifecycleListener
Parameters:
event - tomcat Context's life-cycle event


Copyright © 2010 OW2 Consortium. All Rights Reserved.