Class SpringActionConfig

  extended by org.mentawai.core.ActionConfig
      extended by org.mentawai.spring.SpringActionConfig

public class SpringActionConfig
extends ActionConfig

ActionConfig for Spring support. The static method setBeanFactory specify the BeanFactory that will be used by getAction method. By default, find a WebApplicationContext configured in web.xml

Davi Luan Carneiro

Field Summary
Fields inherited from class org.mentawai.core.ActionConfig
Constructor Summary
SpringActionConfig(String beanName)
SpringActionConfig(String name, String beanName)
SpringActionConfig(String name, String beanName, String innerAction)
Method Summary
 Action getAction()
          Returns an action instance to be used with this request.
 Class<? extends Object> getActionClass()
          Returns the action class for this action config.
static void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Methods inherited from class org.mentawai.core.ActionConfig
addConsequence, addConsequence, addFilter, addFilter, addFilter, addFilter, addFilter, addFilterFirst, addFilterFirst, addFilterFirst, addFilterFirst, ajaxError, ajaxOk, all, authorize, authorize, bypassAuthentication, catchAll, chainError, chainOk, comeBackAfterLogin, fileUpload, fileUpload, fileUpload, fileUpload, fileUpload, filter, filter, filter, filter, filter, filterFirst, filterFirst, filterFirst, filterFirst, fwdError, fwdOk, getAutoConsequence, getCatchAll, getConsequence, getConsequence, getDirFromClass, getFilters, getFilters, getFirstFilters, getInnerAction, getName, internalOnly, isInternalOnly, methodParams, on, on, on, prettyURLParams, redirError, redirError, redirError, redirOk, redirOk, redirOk, shouldBypassAuthentication, shouldRedirectAfterLogin, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public SpringActionConfig(String beanName)


public SpringActionConfig(String name,
                          String beanName)


public SpringActionConfig(String name,
                          String beanName,
                          String innerAction)
Method Detail


public static void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)


public Action getAction()
Description copied from class: ActionConfig
Returns an action instance to be used with this request. Mentawai creates a new action instance for each request. You can extend ActionConfig and override this class to integrate Mentawai with other IoC containers, that may want to create the action themselves.

getAction in class ActionConfig
The action instance to use for the request.


public Class<? extends Object> getActionClass()
Description copied from class: ActionConfig
Returns the action class for this action config.

getActionClass in class ActionConfig
The action class for this action config.

Copyright © 2013. All Rights Reserved.