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 org.picocontainer.MutablePicoContainer; 7 8 /*** 9 * Displays byte data stored in the page beans. If there is a token specified as 10 * a parameter, it will use the data in the token. 11 * 12 * @author Archimedes Trajano 13 */ 14 public class AttachmentServlet extends PicoServlet { 15 /*** 16 * Constructs the servlet. 17 */ 18 public AttachmentServlet() { 19 super(net.trajano.twiff.internal.servlet.AttachmentServlet.class); 20 } 21 22 /*** 23 * Configures the container. 24 * 25 * @see net.trajano.picoservlet.PicoServlet#populateContainer(org.picocontainer.MutablePicoContainer) 26 */ 27 protected void populateContainer(final MutablePicoContainer container) { 28 container.registerComponentImplementation(ServletConfiguration.class); 29 container.registerComponentImplementation(AttachmentActionPageLookup.class); 30 } 31 }