Expresso 5-6

com.jcorporate.expresso.core.controller
Class ExpressoPlugin

java.lang.Object
  extended byorg.apache.struts.tiles.TilesPlugin
      extended bycom.jcorporate.expresso.core.controller.ExpressoPlugin
All Implemented Interfaces:
org.apache.struts.action.PlugIn

public class ExpressoPlugin
extends org.apache.struts.tiles.TilesPlugin

Title: Expresso Project Description: Copyright: Copyright (c) 2001, 2002, 2003 Company: Jcorporate

Author:
Peter Pilgrim Wed Feb 12 19:39:44 GMT 2003

A Plug-in to set up the Struts support for Expresso Framework. This plugin conveniently extends the Tiles plug-in so that Tiles definition can be used from the get-go.

Design notes by Peter Pilgrim Wed Feb 12 19:35:28 GMT 2003


Field Summary
protected static org.apache.commons.logging.Log log
          Commons Logging instance.
 
Fields inherited from class org.apache.struts.tiles.TilesPlugin
currentPlugInConfigObject, definitionFactory, moduleAware, tilesUtilImplClassname
 
Constructor Summary
ExpressoPlugin()
          Default constructor
 
Method Summary
 void destroy()
          End plugin.
 void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig moduleConfig)
          Receive notification that the specified module is being started up.
 void initModuleConfiguration(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig moduleConfig)
          Save the module configuration in�the configuration manager
protected  void initRequestProcessorClass(org.apache.struts.config.ModuleConfig config)
          Sets request processor to appropriate ExpressoRequestProcessor.
 
Methods inherited from class org.apache.struts.tiles.TilesPlugin
findStrutsPlugInConfigProperties, getTilesUtilImplClassname, isModuleAware, readFactoryConfig, setCurrentPlugInConfigObject, setModuleAware, setTilesUtilImplClassname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Commons Logging instance.

Constructor Detail

ExpressoPlugin

public ExpressoPlugin()
Default constructor

Method Detail

initModuleConfiguration

public void initModuleConfiguration(org.apache.struts.action.ActionServlet servlet,
                                    org.apache.struts.config.ModuleConfig moduleConfig)
Save the module configuration in�the configuration manager

Parameters:
servlet - ActionServlet that is managing all the modules in this web application
moduleConfig - ModuleConfig for the module with which this plug in is associated

init

public void init(org.apache.struts.action.ActionServlet servlet,
                 org.apache.struts.config.ModuleConfig moduleConfig)
          throws ServletException

Receive notification that the specified module is being started up.

Parameters:
servlet - ActionServlet that is managing all the modules in this web application
moduleConfig - ModuleConfig for the module with which this plug in is associated
Throws:
ServletException - if this PlugIn cannot be successfully initialized

destroy

public void destroy()
End plugin.


initRequestProcessorClass

protected void initRequestProcessorClass(org.apache.struts.config.ModuleConfig config)
                                  throws ServletException
Sets request processor to appropriate ExpressoRequestProcessor. This method first checks if a requestprocessor is specified. If yes, check if it extends appropriate ExpressoRequestProcessor class. If no, set processor class to ExpressoRequestProcessor

This method is a stock copy of the code that exists in TilesPlugin except that we are replacing the TilesRequestProcessor with ExpressoRequestProcessor

Parameters:
config - ModuleConfig for the module with which this plug in is associated
Throws:
ServletException - If an error occur
See Also:
TilesPlugin, TilesRequestProcessor

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.