01: package demo.continuations;
02:
03: import com.uwyn.rife.engine.Site;
04: import com.uwyn.rife.engine.SiteBuilder;
05: import com.uwyn.rife.rep.SingleObjectParticipant;
06:
07: public class ParticipantSite extends SingleObjectParticipant {
08: private Site site;
09:
10: public ParticipantSite() {
11: SiteBuilder builder = new SiteBuilder("main");
12: builder.setArrival("Order")
13:
14: .enterElement().setImplementation(Order.class).leaveElement();
15:
16: site = builder.getSite();
17: }
18:
19: public Object getObject() {
20: return site;
21: }
22: }
|