01: /*
02: * Created on Nov 21, 2005
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.support.SWFAlterationWrapper;
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 an
12: * "event" within the currently executing flow.
13: * @author Antranig Basman (antranig@caret.cam.ac.uk)
14: */
15:
16: public class SWFEventBean extends BindingBeanSupport implements
17: ActionTarget {
18: protected SWFAlterationWrapper alterationWrapper;
19:
20: public void setAlterationWrapper(
21: SWFAlterationWrapper alterationWrapper) {
22: this .alterationWrapper = alterationWrapper;
23: }
24:
25: public Object invokeAction(String actionname, String knownresult) {
26: return alterationWrapper.handleEvent(actionname);
27: }
28:
29: }
|