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.rep.BlockingRepository;
12 import com.uwyn.rife.rep.Rep;
13 import com.uwyn.rife.resources.ResourceFinderClasspath;
14 import com.uwyn.rife.servlet.RifeLifecycle;
15
16 /**
17 * This is a custom implementation of the entire lifecycle of your RIFE
18 * application. RIFE's standard web.xml file has been modified and instead of
19 * having a rep.path init-param, it uses a lifecycle.classname init-param
20 * that provides the classname of the custom lifecycle implementation.
21 *
22 *@author Terracotta, Inc.
23 */
24 public class LifeCycle extends RifeLifecycle {
25 public LifeCycle() {
26 BlockingRepository rep = new BlockingRepository();
27 rep.addParticipant(ParticipantSite.class, Site.DEFAULT_PARTICIPANT_NAME, false, null);
28 rep.runParticipants();
29 // don't forget to set the default repository
30 Rep.setDefaultRepository(rep);
31 }
32 }
|