|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.action.AbstractAction
org.springframework.webflow.action.AbstractBeanInvokingAction
public abstract class AbstractBeanInvokingAction
Base class for actions that delegate to methods on beans (POJOs - Plain Old Java Objects). Acts as an adapter that
adapts an Object
method to the Spring Web Flow Action
contract.
Subclasses are required to implement the getBean(RequestContext)
method, returning the bean on which a
method should be invoked.
BeanInvokingActionFactory
Field Summary |
---|
Fields inherited from class org.springframework.webflow.action.AbstractAction |
---|
logger |
Constructor Summary | |
---|---|
protected |
AbstractBeanInvokingAction(org.springframework.binding.method.MethodSignature methodSignature)
Creates a new bean invoking action. |
Method Summary | |
---|---|
protected Event |
doExecute(RequestContext context)
Template hook method subclasses should override to encapsulate their specific action execution logic. |
protected abstract java.lang.Object |
getBean(RequestContext context)
Retrieves the bean to invoke a method on. |
protected org.springframework.binding.method.MethodInvoker |
getMethodInvoker()
Returns the bean method invoker helper. |
ActionResultExposer |
getMethodResultExposer()
Returns the configuration for how bean method return values should be exposed to an executing flow that invokes this action. |
org.springframework.binding.method.MethodSignature |
getMethodSignature()
Returns the signature of the method to invoke on the target bean. |
protected ResultEventFactory |
getResultEventFactory()
Returns the event adaption strategy used by this action. |
void |
setConversionService(org.springframework.binding.convert.ConversionService conversionService)
Set the conversion service to perform type conversion of event parameters to method arguments as neccessary. |
void |
setMethodResultExposer(ActionResultExposer methodResultExposer)
Configures how bean method return values should be exposed to an executing flow that invokes this action. |
void |
setResultEventFactory(ResultEventFactory resultEventFactory)
Set the bean return value->event adaption strategy. |
Methods inherited from class org.springframework.webflow.action.AbstractAction |
---|
afterPropertiesSet, doPostExecute, doPreExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractBeanInvokingAction(org.springframework.binding.method.MethodSignature methodSignature)
methodSignature
- the signature of the method to invokeMethod Detail |
---|
public org.springframework.binding.method.MethodSignature getMethodSignature()
public ActionResultExposer getMethodResultExposer()
public void setMethodResultExposer(ActionResultExposer methodResultExposer)
protected ResultEventFactory getResultEventFactory()
public void setResultEventFactory(ResultEventFactory resultEventFactory)
SuccessEventFactory
, so all bean
method return values will be interpreted as "success".
public void setConversionService(org.springframework.binding.convert.ConversionService conversionService)
DefaultConversionService
.
protected org.springframework.binding.method.MethodInvoker getMethodInvoker()
protected Event doExecute(RequestContext context) throws java.lang.Exception
AbstractAction
doExecute
in class AbstractAction
context
- the action execution context, for accessing and setting data in "flow scope" or "request scope"
java.lang.Exception
- an unrecoverable exception occured, either checked or uncheckedprotected abstract java.lang.Object getBean(RequestContext context) throws java.lang.Exception
context
- the flow execution request context
java.lang.Exception
- when the bean cannot be retreived
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |