01 /**
02 *
03 * All content copyright (c) 2003-2008 Terracotta, Inc.,
04 * except as may otherwise be noted in a separate copyright notice.
05 * All rights reserved.
06 *
07 */
08 package demo.continuations;
09
10 import com.uwyn.rife.engine.Site;
11 import com.uwyn.rife.engine.SiteBuilder;
12 import com.uwyn.rife.rep.SingleObjectParticipant;
13
14 /**
15 * Description of the Class
16 *
17 *@author Terracotta, Inc.
18 */
19 public class ParticipantSite extends SingleObjectParticipant {
20 private Site site;
21
22 public ParticipantSite() {
23 SiteBuilder builder = new SiteBuilder("main");
24
25 builder.setArrival("Order")
26 .enterElement()
27 .setImplementation(Order.class)
28 .leaveElement();
29
30 site = builder.getSite();
31 }
32
33 public Object getObject() {
34 return site;
35 }
36 }
|