01: /*
02: * Created on 16 Jul 2007
03: */
04: package uk.org.ponder.rsf.swf.beans;
05:
06: import uk.org.ponder.rsf.request.ActionTarget;
07: import uk.org.ponder.rsf.swf.support.BindingBeanSupport;
08: import uk.org.ponder.rsf.swf.viewparams.SWFLaunchViewParams;
09:
10: /** An action-cycle representative of the Spring Web Flow system within RSF.
11: * An attempted invocation of an action binding will be interpreted as a
12: * a launch of a new flow with the specified flow Id.
13: * @author Antranig Basman (antranig@caret.cam.ac.uk)
14: */
15:
16: public class SWFLaunchBean extends BindingBeanSupport implements
17: ActionTarget {
18:
19: public Object invokeAction(String actionname, String knownresult) {
20: SWFLaunchViewParams params = new SWFLaunchViewParams(actionname);
21: executor.execute(params, null);
22: return executor.getARIResult();
23: }
24:
25: }
|