1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.se.config; |
17 |
|
|
18 |
|
import java.io.File; |
19 |
|
import java.io.IOException; |
20 |
|
import java.util.Iterator; |
21 |
|
import java.util.List; |
22 |
|
|
23 |
|
import org.qedeq.base.io.IoUtility; |
24 |
|
import org.qedeq.base.io.Parameters; |
25 |
|
import org.qedeq.base.io.Path; |
26 |
|
import org.qedeq.kernel.se.common.Service; |
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
@author |
33 |
|
|
|
|
| 97.6% |
Uncovered Elements: 4 (166) |
Complexity: 63 |
Complexity Density: 0.7 |
|
34 |
|
public class QedeqConfig { |
35 |
|
|
36 |
|
|
37 |
|
private static final String DEFAULT_LOCAL_MODULES_DIRECTORY |
38 |
|
= "local"; |
39 |
|
|
40 |
|
|
41 |
|
private static final String DEFAULT_LOCAL_BUFFER |
42 |
|
= "buffer"; |
43 |
|
|
44 |
|
|
45 |
|
private static final String DEFAULT_GENERATED |
46 |
|
= "generated"; |
47 |
|
|
48 |
|
|
49 |
|
private static final String DEFAULT_LOG_FILE |
50 |
|
= "log/log.txt"; |
51 |
|
|
52 |
|
|
53 |
|
private final ConfigAccess configAccess; |
54 |
|
|
55 |
|
|
56 |
|
private final File basisDirectory; |
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
@param |
62 |
|
@param |
63 |
|
@param |
64 |
|
|
65 |
|
@throws |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
67 |
45
|
public QedeqConfig(final File configFile, final String description, final File basisDirectory)... |
68 |
|
throws IOException { |
69 |
45
|
configAccess = new ConfigAccess(configFile, description); |
70 |
45
|
this.basisDirectory = basisDirectory.getCanonicalFile(); |
71 |
|
} |
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
@throws |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
2
|
public final void store() throws IOException {... |
79 |
2
|
configAccess.store(); |
80 |
|
} |
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
@return |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
87 |
4
|
public final File getGenerationDirectory() {... |
88 |
4
|
String location = getKeyValue("generationLocation"); |
89 |
4
|
if (location == null) { |
90 |
1
|
location = QedeqConfig.DEFAULT_GENERATED; |
91 |
|
} |
92 |
4
|
return createAbsolutePath(location); |
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
@param |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
100 |
2
|
public final void setGenerationDirectory(final File location) {... |
101 |
2
|
final String relative = createRelativePath(location); |
102 |
2
|
setKeyValue("generationLocation", relative); |
103 |
|
} |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
|
108 |
|
@return |
109 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
110 |
4
|
public final File getBufferDirectory() {... |
111 |
4
|
String location = getKeyValue("bufferLocation"); |
112 |
4
|
if (location == null) { |
113 |
1
|
location = QedeqConfig.DEFAULT_LOCAL_BUFFER; |
114 |
|
} |
115 |
4
|
return createAbsolutePath(location); |
116 |
|
} |
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
@param |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
125 |
2
|
public final void setBufferDirectory(final File location) {... |
126 |
2
|
final String relative = createRelativePath(location); |
127 |
2
|
setKeyValue("bufferLocation", relative); |
128 |
|
} |
129 |
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
|
@return |
134 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
135 |
4
|
public final File getLocalModulesDirectory() {... |
136 |
4
|
String location = getKeyValue("localModulesDirectory"); |
137 |
4
|
if (location == null) { |
138 |
1
|
location = QedeqConfig.DEFAULT_LOCAL_MODULES_DIRECTORY; |
139 |
|
} |
140 |
4
|
return createAbsolutePath(location); |
141 |
|
} |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
@param |
149 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
150 |
2
|
public final void setLocalModulesDirectory(final File location) {... |
151 |
2
|
final String relative = createRelativePath(location); |
152 |
2
|
setKeyValue("localModulesDirectory", relative); |
153 |
|
} |
154 |
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
|
@return |
159 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
160 |
2
|
private final String getLogFileString() {... |
161 |
2
|
final String location = getKeyValue("logLocation"); |
162 |
2
|
if (location == null) { |
163 |
1
|
return QedeqConfig.DEFAULT_LOG_FILE; |
164 |
|
} |
165 |
1
|
return location; |
166 |
|
} |
167 |
|
|
168 |
|
|
169 |
|
|
170 |
|
|
171 |
|
@return |
172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
173 |
2
|
public final File getLogFile() {... |
174 |
2
|
return new File(getBasisDirectory(), getLogFileString()); |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
|
@return |
181 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
182 |
3
|
public final String[] getModuleHistory() {... |
183 |
3
|
return configAccess.getStringProperties("moduleHistory."); |
184 |
|
} |
185 |
|
|
186 |
|
|
187 |
|
|
188 |
|
|
189 |
|
@param |
190 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
191 |
1
|
public final void saveModuleHistory(final List modules) {... |
192 |
1
|
configAccess.removeProperties(("moduleHistory.")); |
193 |
2
|
for (int i = 0; i < modules.size(); i++) { |
194 |
1
|
setKeyValue("moduleHistory." + (i + 101), |
195 |
|
modules.get(i).toString()); |
196 |
|
} |
197 |
|
} |
198 |
|
|
199 |
|
|
200 |
|
|
201 |
|
|
202 |
|
@return |
203 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
204 |
3
|
public final String[] getPreviouslyLoadedModules() {... |
205 |
3
|
return configAccess.getStringProperties("loadedModule."); |
206 |
|
} |
207 |
|
|
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
@param |
212 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
213 |
1
|
public final void setPreviouslyLoadedModules(final String[] moduleAddresses) {... |
214 |
1
|
configAccess.removeProperties("loadedModule."); |
215 |
4
|
for (int i = 0; i < moduleAddresses.length; i++) { |
216 |
3
|
setKeyValue("loadedModule." + (i + 1), moduleAddresses[i]); |
217 |
|
} |
218 |
|
} |
219 |
|
|
220 |
|
|
221 |
|
|
222 |
|
|
223 |
|
@return |
224 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
225 |
28
|
public final File getBasisDirectory() {... |
226 |
28
|
return basisDirectory; |
227 |
|
} |
228 |
|
|
229 |
|
|
230 |
|
|
231 |
|
|
232 |
|
@param |
233 |
|
@return |
234 |
|
|
|
|
| 73.3% |
Uncovered Elements: 4 (15) |
Complexity: 4 |
Complexity Density: 0.31 |
|
235 |
13
|
public final File createAbsolutePath(final String path) {... |
236 |
13
|
File result = new File(path); |
237 |
13
|
final Path ptest = new Path(path.replace(File.separatorChar, '/'), ""); |
238 |
13
|
if (ptest.isAbsolute()) { |
239 |
1
|
try { |
240 |
1
|
return result.getCanonicalFile(); |
241 |
|
} catch (Exception e) { |
242 |
|
|
243 |
0
|
e.printStackTrace(System.out); |
244 |
0
|
System.out.println("we try to continue with file " + result); |
245 |
0
|
return result; |
246 |
|
} |
247 |
|
} |
248 |
12
|
result = new File(getBasisDirectory(), path); |
249 |
12
|
try { |
250 |
12
|
result = result.getCanonicalFile(); |
251 |
|
} catch (IOException e) { |
252 |
|
|
253 |
0
|
e.printStackTrace(System.out); |
254 |
|
} |
255 |
12
|
return result; |
256 |
|
} |
257 |
|
|
258 |
|
|
259 |
|
|
260 |
|
|
261 |
|
@param |
262 |
|
@return |
263 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
264 |
6
|
private final String createRelativePath(final File path) {... |
265 |
6
|
return IoUtility.createRelativePath(getBasisDirectory(), path); |
266 |
|
} |
267 |
|
|
268 |
|
|
269 |
|
|
270 |
|
|
271 |
|
@return |
272 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
273 |
4
|
public boolean isAutoReloadLastSessionChecked() {... |
274 |
4
|
return "true".equals( |
275 |
|
getKeyValue("sessionAutoReload", "true")); |
276 |
|
} |
277 |
|
|
278 |
|
|
279 |
|
|
280 |
|
|
281 |
|
@param |
282 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
283 |
2
|
public final void setAutoReloadLastSessionChecked(final boolean mode) {... |
284 |
2
|
setKeyValue("sessionAutoReload", (mode ? "true" : "false")); |
285 |
|
} |
286 |
|
|
287 |
|
|
288 |
|
|
289 |
|
|
290 |
|
|
291 |
|
@return |
292 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
293 |
4
|
public final boolean isTraceOn() {... |
294 |
4
|
return "true".equals(getKeyValue("traceOn", "false")); |
295 |
|
} |
296 |
|
|
297 |
|
|
298 |
|
|
299 |
|
|
300 |
|
@param |
301 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
302 |
2
|
public final void setTraceOn(final boolean traceOn) {... |
303 |
2
|
setKeyValue("traceOn", (traceOn ? "true" : "false")); |
304 |
|
} |
305 |
|
|
306 |
|
|
307 |
|
|
308 |
|
|
309 |
|
@return |
310 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
311 |
6
|
public int getConnectionTimeout() {... |
312 |
6
|
return getKeyValue("connectionTimeout", 2000); |
313 |
|
} |
314 |
|
|
315 |
|
|
316 |
|
|
317 |
|
|
318 |
|
@param |
319 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
320 |
3
|
public final void setConnectionTimeout(final int timeout) {... |
321 |
3
|
setKeyValue("connectionTimeout", timeout); |
322 |
|
} |
323 |
|
|
324 |
|
|
325 |
|
|
326 |
|
|
327 |
|
@return |
328 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
329 |
4
|
public int getReadTimeout() {... |
330 |
4
|
return getKeyValue("readTimeout", 1000); |
331 |
|
} |
332 |
|
|
333 |
|
|
334 |
|
|
335 |
|
|
336 |
|
@param |
337 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
338 |
2
|
public final void setReadTimeout(final int timeout) {... |
339 |
2
|
setKeyValue("readTimeout", timeout); |
340 |
|
} |
341 |
|
|
342 |
|
|
343 |
|
|
344 |
|
|
345 |
|
@param |
346 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
347 |
3
|
public final void setHttpProxyHost(final String httpProxyHost) {... |
348 |
3
|
setKeyValue("http.proxyHost", httpProxyHost); |
349 |
|
} |
350 |
|
|
351 |
|
|
352 |
|
|
353 |
|
|
354 |
|
|
355 |
|
|
356 |
|
|
357 |
|
@return |
358 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
359 |
7
|
public final String getHttpProxyHost() {... |
360 |
7
|
final String def = System.getProperty("http.proxyHost"); |
361 |
7
|
if (def != null) { |
362 |
4
|
return getKeyValue("http.proxyHost", def); |
363 |
|
} |
364 |
3
|
return getKeyValue("http.proxyHost"); |
365 |
|
} |
366 |
|
|
367 |
|
|
368 |
|
|
369 |
|
|
370 |
|
@param |
371 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
372 |
2
|
public final void setHttpProxyPort(final String httpProxyPort) {... |
373 |
2
|
setKeyValue("http.proxyPort", httpProxyPort); |
374 |
|
} |
375 |
|
|
376 |
|
|
377 |
|
|
378 |
|
|
379 |
|
|
380 |
|
|
381 |
|
@return |
382 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
383 |
5
|
public final String getHttpProxyPort() {... |
384 |
5
|
final String def = System.getProperty("http.proxyPort"); |
385 |
5
|
if (def != null) { |
386 |
2
|
return getKeyValue("http.proxyPort", def); |
387 |
|
} |
388 |
3
|
return getKeyValue("http.proxyPort"); |
389 |
|
} |
390 |
|
|
391 |
|
|
392 |
|
|
393 |
|
|
394 |
|
@param |
395 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
396 |
2
|
public final void setHttpNonProxyHosts(final String httpNonProxyHosts) {... |
397 |
2
|
setKeyValue("http.nonProxyHosts", httpNonProxyHosts); |
398 |
|
} |
399 |
|
|
400 |
|
|
401 |
|
|
402 |
|
|
403 |
|
|
404 |
|
|
405 |
|
@return |
406 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
407 |
5
|
public final String getHttpNonProxyHosts() {... |
408 |
5
|
final String def = System.getProperty("http.nonProxyHosts"); |
409 |
5
|
if (def != null) { |
410 |
2
|
return getKeyValue("http.nonProxyHosts", def); |
411 |
|
} |
412 |
3
|
return getKeyValue("http.nonProxyHosts"); |
413 |
|
} |
414 |
|
|
415 |
|
|
416 |
|
|
417 |
|
|
418 |
|
@param |
419 |
|
@return |
420 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
421 |
27
|
protected synchronized String getKeyValue(final String key) {... |
422 |
27
|
return configAccess.getString(key); |
423 |
|
} |
424 |
|
|
425 |
|
|
426 |
|
|
427 |
|
|
428 |
|
@param |
429 |
|
@param |
430 |
|
@return |
431 |
|
|
432 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
433 |
25
|
protected synchronized String getKeyValue(final String key, final String defaultValue) {... |
434 |
25
|
return configAccess.getString(key, defaultValue); |
435 |
|
} |
436 |
|
|
437 |
|
|
438 |
|
|
439 |
|
|
440 |
|
@param |
441 |
|
@param |
442 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
443 |
29
|
protected synchronized void setKeyValue(final String key, final String value) {... |
444 |
29
|
configAccess.setString(key, value); |
445 |
|
} |
446 |
|
|
447 |
|
|
448 |
|
|
449 |
|
|
450 |
|
@param |
451 |
|
@param |
452 |
|
@return |
453 |
|
|
454 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
455 |
14
|
protected synchronized int getKeyValue(final String key, final int defaultValue) {... |
456 |
14
|
return configAccess.getInteger(key, defaultValue); |
457 |
|
} |
458 |
|
|
459 |
|
|
460 |
|
|
461 |
|
|
462 |
|
@param |
463 |
|
@param |
464 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
465 |
6
|
protected synchronized void setKeyValue(final String key, final int value) {... |
466 |
6
|
configAccess.setInteger(key, value); |
467 |
|
} |
468 |
|
|
469 |
|
|
470 |
|
|
471 |
|
|
472 |
|
@param |
473 |
|
@param |
474 |
|
@return |
475 |
|
|
476 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
477 |
6
|
protected synchronized boolean getKeyValue(final String key, final boolean defaultValue) {... |
478 |
6
|
return "true".equals(getKeyValue(key, (defaultValue ? "true" : "false"))); |
479 |
|
} |
480 |
|
|
481 |
|
|
482 |
|
|
483 |
|
|
484 |
|
@param |
485 |
|
@param |
486 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
487 |
3
|
protected void setKeyValue(final String key, final boolean value) {... |
488 |
3
|
setKeyValue(key, (value ? "true" : "false")); |
489 |
|
} |
490 |
|
|
491 |
|
|
492 |
|
|
493 |
|
|
494 |
|
@param |
495 |
|
@return |
496 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
497 |
5
|
public Parameters getServiceEntries(final Service service) {... |
498 |
5
|
return new Parameters(configAccess.getProperties(service.getServiceId() + "$")); |
499 |
|
} |
500 |
|
|
501 |
|
|
502 |
|
|
503 |
|
|
504 |
|
@param |
505 |
|
@param |
506 |
|
@param |
507 |
|
@return |
508 |
|
|
509 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
510 |
1
|
public String getServiceKeyValue(final Service service, final String key, final String defaultValue) {... |
511 |
1
|
return getKeyValue(service.getServiceId() + "$" + key, defaultValue); |
512 |
|
} |
513 |
|
|
514 |
|
|
515 |
|
|
516 |
|
|
517 |
|
@param |
518 |
|
@param |
519 |
|
@param |
520 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
521 |
1
|
public void setServiceKeyValue(final Service service, final String key, final String value) {... |
522 |
1
|
setKeyValue(service.getServiceId() + "$" + key, value); |
523 |
|
} |
524 |
|
|
525 |
|
|
526 |
|
|
527 |
|
|
528 |
|
@param |
529 |
|
@param |
530 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
531 |
1
|
public void setServiceKeyValues(final Service service, final Parameters parameters) {... |
532 |
1
|
final Iterator it = parameters.keySet().iterator(); |
533 |
4
|
while (it.hasNext()) { |
534 |
3
|
final String key = (String) it.next(); |
535 |
3
|
setKeyValue(service.getServiceId() + "$" + key, parameters.getString(key)); |
536 |
|
} |
537 |
|
} |
538 |
|
|
539 |
|
|
540 |
|
|
541 |
|
|
542 |
|
@param |
543 |
|
@param |
544 |
|
@param |
545 |
|
@return |
546 |
|
|
547 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
548 |
1
|
public int getServiceKeyValue(final Service service, final String key, final int defaultValue) {... |
549 |
1
|
return getKeyValue(service.getServiceId() + "$" + key, defaultValue); |
550 |
|
} |
551 |
|
|
552 |
|
|
553 |
|
|
554 |
|
|
555 |
|
@param |
556 |
|
@param |
557 |
|
@param |
558 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
559 |
1
|
public void setServiceKeyValue(final Service service, final String key, final int value) {... |
560 |
1
|
setKeyValue(service.getServiceId() + "$" + key, value); |
561 |
|
} |
562 |
|
|
563 |
|
|
564 |
|
|
565 |
|
|
566 |
|
@param |
567 |
|
@param |
568 |
|
@param |
569 |
|
@return |
570 |
|
|
571 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
572 |
1
|
public boolean getServiceKeyValue(final Service service, final String key, final boolean defaultValue) {... |
573 |
1
|
return getKeyValue(service.getServiceId() + "$" + key, defaultValue); |
574 |
|
} |
575 |
|
|
576 |
|
|
577 |
|
|
578 |
|
|
579 |
|
@param |
580 |
|
@param |
581 |
|
@param |
582 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
583 |
1
|
public void setServiceKeyValue(final Service service, final String key, final boolean value) {... |
584 |
1
|
setKeyValue(service.getServiceId() + "$" + key, value); |
585 |
|
} |
586 |
|
|
587 |
|
} |