org.mentawai.spring
Class SpringActionConfig

java.lang.Object
  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

Author:
Davi Luan Carneiro

Field Summary
 
Fields inherited from class org.mentawai.core.ActionConfig
actionClass
 
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

SpringActionConfig

public SpringActionConfig(String beanName)

SpringActionConfig

public SpringActionConfig(String name,
                          String beanName)

SpringActionConfig

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

setBeanFactory

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

getAction

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.

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

getActionClass

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

Overrides:
getActionClass in class ActionConfig
Returns:
The action class for this action config.


Copyright © 2013. All Rights Reserved.