01: package demo.continuations;
02:
03: import com.uwyn.rife.engine.Site;
04: import com.uwyn.rife.rep.BlockingRepository;
05: import com.uwyn.rife.rep.Rep;
06: import com.uwyn.rife.resources.ResourceFinderClasspath;
07: import com.uwyn.rife.servlet.RifeLifecycle;
08:
09: /**
10: * This is a custom implementation of the entire lifecycle of your RIFE
11: * application. RIFE's standard web.xml file has been modified and instead of
12: * having a rep.path init-param, it uses a lifecycle.classname init-param
13: * that provides the classname of the custom lifecycle implementation.
14: *
15: *@author Terracotta, Inc.
16: */
17: public class LifeCycle extends RifeLifecycle {
18: public LifeCycle() {
19: BlockingRepository rep = new BlockingRepository();
20: rep.addParticipant(ParticipantSite.class,
21: Site.DEFAULT_PARTICIPANT_NAME, false, null);
22: rep.runParticipants();
23: // don't forget to set the default repository
24: Rep.setDefaultRepository(rep);
25: }
26: }
|