org.nanocontainer.nanowar.struts
Class PicoActionServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.struts.action.ActionServlet
              extended byorg.nanocontainer.nanowar.struts.PicoActionServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class PicoActionServlet
extends org.apache.struts.action.ActionServlet

Uses Pico to produce Actions and inject dependencies into them. Only use this class if you are using Struts 1.0. If you are using Struts 1.1, use PicoRequestProcessor or PicoTilesRequestProcessor instead.

Author:
Stephen Molitor
See Also:
ActionFactory, PicoRequestProcessor, PicoTilesRequestProcessor, Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionServlet
config, configDigester, convertNull, dataSources, internal, internalName, log, processor, registrations, servletMapping, servletName
 
Constructor Summary
PicoActionServlet()
           
 
Method Summary
protected  org.apache.struts.action.Action processActionCreate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Creates or retrieves the action instance.
 
Methods inherited from class org.apache.struts.action.ActionServlet
addServletMapping, destroy, destroyConfigDigester, destroyInternal, destroyModules, doGet, doPost, getInternal, getModuleConfig, getRequestProcessor, init, initConfigDigester, initInternal, initModuleConfig, initModuleConfigFactory, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initModulePrefixes, initOther, initServlet, parseModuleConfigFile, process
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PicoActionServlet

public PicoActionServlet()
Method Detail

processActionCreate

protected org.apache.struts.action.Action processActionCreate(org.apache.struts.action.ActionMapping mapping,
                                                              javax.servlet.http.HttpServletRequest request)
Creates or retrieves the action instance. The action is retrieved from the actions Pico container, using the mapping path as the component key. If no such action exists, a new one will be instantiated and placed in the actions container, thus injecting its dependencies.

Parameters:
mapping - the action mapping.
request - the HTTP request.
Returns:
the action instance.


Copyright © 2003-2006 Codehaus. All Rights Reserved.