1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.uruma.rcp.core;
17
18 import org.eclipse.osgi.framework.adaptor.BundleWatcher;
19 import org.osgi.framework.Bundle;
20
21
22
23
24
25
26 public class UrumaBundleWatcher implements BundleWatcher {
27
28 public void watchBundle(final Bundle bundle, final int type) {
29 switch (type) {
30 case START_INSTALLING:
31 System.out.println("StartInstalling : " + bundle.getSymbolicName());
32 break;
33
34 case END_INSTALLING:
35 System.out.println("EndInstalling : " + bundle.getSymbolicName());
36 break;
37
38 case START_ACTIVATION:
39 System.out.println("StartActivation : " + bundle.getSymbolicName());
40 break;
41
42 case END_ACTIVATION:
43 System.out.println("EndActivation : " + bundle.getSymbolicName());
44 break;
45
46 default:
47 break;
48 }
49 }
50 }