01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: EngineContinuationConfigInstrument.java 3805 2007-06-23 20:18:19Z gbevin $
07: */
08: package com.uwyn.rife.engine;
09:
10: import com.uwyn.rife.continuations.ContinuationConfigInstrument;
11:
12: public class EngineContinuationConfigInstrument implements
13: ContinuationConfigInstrument {
14: public String getContinuableMarkerInterfaceName() {
15: // this method should never be called since the engine doesn't use
16: // the ContinuableDetectionClassVisitor, but the
17: // ElementDetectionClassVisitor instead
18: throw new UnsupportedOperationException();
19: }
20:
21: public String getContinuableSupportClassName() {
22: return ElementSupport.class.getName();
23: }
24:
25: public String getEntryMethodName() {
26: return "processElement";
27: }
28:
29: public Class getEntryMethodReturnType() {
30: return void.class;
31: }
32:
33: public Class[] getEntryMethodArgumentTypes() {
34: return null;
35: }
36:
37: public String getPauseMethodName() {
38: return "pause";
39: }
40:
41: public String getStepbackMethodName() {
42: return "stepBack";
43: }
44:
45: public String getCallMethodName() {
46: return "call";
47: }
48:
49: public Class getCallMethodReturnType() {
50: return Object.class;
51: }
52:
53: public Class[] getCallMethodArgumentTypes() {
54: return new Class[] { String.class };
55: }
56:
57: public String getAnswerMethodName() {
58: return "answer";
59: }
60: }
|