org.ow2.jonas.web.tomcat6.ws
Class WSContextLifecycleListener

java.lang.Object
  extended by org.ow2.jonas.web.tomcat6.ws.WSContextLifecycleListener
All Implemented Interfaces:
org.apache.catalina.LifecycleListener

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

React to Context Lifecycle events (start/stop/...). This class acts as the @WebService POJO annotated web service deployer. Right after the Context is started, existing registered servlet (from web.xml) are analyzed, if they marks a web service, the Wrapper class is adapted for web service endpoint invocation. After Context's startup, we benefit of the real WebApp ClassLoader, so we can easily creates our own Wrappers

Author:
Guillaume Sauthier

Constructor Summary
WSContextLifecycleListener(Map<String,org.ow2.util.ee.metadata.war.api.IWarClassMetadata> services, IJAXWSService jaxws)
          Construct a new LifecycleListener.
 
Method Summary
 void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
          Callback for all Context Lifecycle events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSContextLifecycleListener

public WSContextLifecycleListener(Map<String,org.ow2.util.ee.metadata.war.api.IWarClassMetadata> services,
                                  IJAXWSService jaxws)
Construct a new LifecycleListener.

Parameters:
services - JAX-WS web services description
jaxws - the JAXWS service
Method Detail

lifecycleEvent

public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
Callback for all Context Lifecycle events. We only react to START_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT

Specified by:
lifecycleEvent in interface org.apache.catalina.LifecycleListener
Parameters:
event - the Lifecycle event


Copyright © 2010 OW2 Consortium. All Rights Reserved.