1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.seasar.uruma.rcp.core;
17
18
19
20
21
22
23 public final class UrumaBundleState {
24 private static UrumaBundleState instance;
25
26 private Throwable urumaAppInitializingException;
27
28 private BundleState urumaBundleState = BundleState.NOT_AVAILABLE;
29
30 private BundleState appBundleState = BundleState.NOT_AVAILABLE;
31
32 private UrumaBundleState() {
33
34 }
35
36
37
38
39
40
41 public Throwable getUrumaAppInitializingException() {
42 return urumaAppInitializingException;
43 }
44
45
46
47
48
49
50
51 void setUrumaAppInitializingException(
52 final Throwable urumaAppInitializingException) {
53 this.urumaAppInitializingException = urumaAppInitializingException;
54 }
55
56
57
58
59
60
61 public BundleState getUrumaBundleState() {
62 return urumaBundleState;
63 }
64
65
66
67
68
69
70
71 void setUrumaBundleState(final BundleState urumaBundleState) {
72 this.urumaBundleState = urumaBundleState;
73 }
74
75
76
77
78
79
80 public BundleState getAppBundleState() {
81 return appBundleState;
82 }
83
84
85
86
87
88
89
90 void setAppBundleState(final BundleState appBundleState) {
91 this.appBundleState = appBundleState;
92 }
93
94
95
96
97
98
99 public static UrumaBundleState getInstance() {
100 if (instance == null) {
101 instance = new UrumaBundleState();
102 }
103 return instance;
104 }
105
106
107
108
109
110
111 public enum BundleState {
112
113
114
115 NOT_AVAILABLE,
116
117
118
119 AVAILABLE;
120 }
121 }