1 package net.trajano.twiff.web; 2 3 import net.trajano.picoservlet.PicoServlet; 4 import net.trajano.twiff.internal.servlet.AttachmentActionPageLookup; 5 import net.trajano.twiff.internal.servlet.ServletConfiguration; 6 import net.trajano.twiff.internal.servlet.StringActionResultProcessor; 7 import net.trajano.twiff.internal.servlet.UrlActionResultProcessor; 8 import net.trajano.twiff.internal.webxml.WebXmlAdapter; 9 import org.picocontainer.MutablePicoContainer; 10 11 /*** 12 * This implements a form handler that does not do the post-redirect-get 13 * pattern. This should not be used normally unless it is not possible to have a 14 * datastore on the web tier. 15 * 16 * @author Archimedes Trajano 17 */ 18 public final class ActionServlet extends PicoServlet { 19 /*** 20 * Constructs the servlet. 21 */ 22 public ActionServlet() { 23 super(net.trajano.twiff.internal.servlet.ActionServlet.class); 24 } 25 26 /*** 27 * Configures the container. 28 * 29 * @see net.trajano.picoservlet.PicoServlet#populateContainer(org.picocontainer.MutablePicoContainer) 30 */ 31 protected void populateContainer(final MutablePicoContainer container) { 32 container.registerComponentImplementation(ServletConfiguration.class); 33 container.registerComponentImplementation(WebXmlAdapter.class); 34 container.registerComponentImplementation(StringActionResultProcessor.class); 35 container.registerComponentImplementation(UrlActionResultProcessor.class); 36 container.registerComponentImplementation(AttachmentActionPageLookup.class); 37 } 38 }