01: package org.concern.controller;
02:
03: public class DummyAsynchronousActivity extends
04: AbstractAsynchronousActivity {
05: public DummyAsynchronousActivity() {
06: }
07:
08: public DummyAsynchronousActivity(String name) {
09: super (name);
10: environment.put("activity.precondition", name);
11: environment.put("activity.postcondition", "");
12: environment.put("activity.reentrant", Boolean.TRUE);
13: }
14:
15: public void enlist(Object subject)
16: throws ActivityExecutionException {
17: System.out.println("enlist " + getName() + " on " + subject);
18: }
19:
20: public void delist(Object subject)
21: throws ActivityExecutionException {
22: System.out.println("delist " + getName() + " on " + subject);
23: }
24:
25: Integer dummy;
26:
27: public void setDummy(Integer dummy) {
28: this .dummy = dummy;
29: }
30:
31: public Integer getDummy() {
32: return dummy;
33: }
34: }
|