com.opensymphony.webwork.util
Class ResolverSetupServletContextListener

java.lang.Object
  extended by com.opensymphony.webwork.util.ResolverSetupServletContextListener
All Implemented Interfaces:
EventListener, ServletContextListener

public class ResolverSetupServletContextListener
extends Object
implements ServletContextListener

A Servlet Context Listener that will loop through all Reference Resolvers available in the xwork Configuration and set the ServletContext on those that are ServletContextAware. The Servlet Context can be used by the External Reference Resolver to initialise it's state. i.e. the Spring framework uses a ContextServletListener to initialise it's IoC container, storing it's container context (ApplicationContext in Spring terms) in the Servlet context, the External Reference Resolver can get a reference to the container context from the servlet context.

Author:
Ross

Constructor Summary
ResolverSetupServletContextListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent event)
           
 void contextInitialized(ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResolverSetupServletContextListener

public ResolverSetupServletContextListener()
Method Detail

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Specified by:
contextDestroyed in interface ServletContextListener

contextInitialized

public void contextInitialized(ServletContextEvent event)
Specified by:
contextInitialized in interface ServletContextListener

WebWork Project Page