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 webwork.action.factory.ActionFactory;
011 import webwork.dispatcher.ServletDispatcher;
012
013 /**
014 * Extension to the standard WebWork 1 ServletDispatcher that instantiates
015 * a new container in the request scope for each request and disposes of it
016 * correctly at the end of the request.
017 * <p/>
018 * To use, replace the WebWork ServletDispatcher in web.xml with this.
019 *
020 * @author Joe Walnes
021 */
022 @SuppressWarnings("serial")
023 public class PicoWebWork1ServletDispatcher extends ServletDispatcher {
024
025 public PicoWebWork1ServletDispatcher() {
026 super();
027 ActionFactory.setActionFactory(new WebWorkActionFactory());
028 }
029
030 }