1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.kew.config;
18
19 import org.kuali.rice.core.api.lifecycle.BaseLifecycle;
20 import org.kuali.rice.core.api.lifecycle.BaseLifecycle;
21 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
22 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
23
24
25
26
27
28 public class ThinClientLifecycle extends BaseLifecycle {
29
30 private ThinClientResourceLoader resourceLoader;
31
32 @Override
33 public void start() throws Exception {
34 resourceLoader = new ThinClientResourceLoader();
35 resourceLoader.start();
36 GlobalResourceLoader.addResourceLoaderFirst(resourceLoader);
37 super.start();
38 }
39
40 @Override
41 public void stop() throws Exception {
42 if (resourceLoader != null) {
43 resourceLoader.stop();
44 }
45 super.stop();
46 }
47
48 }