001 /*******************************************************************************
002 * Copyright (C) PicoContainer Organization. All rights reserved.
003 * ---------------------------------------------------------------------------
004 * The software in this package is published under the terms of the BSD style
005 * license a copy of which has been included with this distribution in the
006 * LICENSE.txt file.
007 ******************************************************************************/
008 package org.picocontainer.web.webwork;
009
010 import javax.servlet.ServletContextEvent;
011
012 import org.picocontainer.web.PicoServletContainerListener;
013
014 import webwork.action.factory.ActionFactory;
015
016 @SuppressWarnings("serial")
017 public class WebWorkPicoServletContainerListener extends PicoServletContainerListener {
018
019 public void contextInitialized(ServletContextEvent event) {
020 super.contextInitialized(event);
021 ActionFactory.setActionFactory(new WebWorkActionFactory());
022 }
023 }