Skip to content

Package: KapuaAccountSettingKeys

KapuaAccountSettingKeys

nameinstructionbranchcomplexitylinemethod
KapuaAccountSettingKeys(String, int, String)
M: 8 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
key()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 26 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2016, 2022 Eurotech and/or its affiliates and others
3: *
4: * This program and the accompanying materials are made
5: * available under the terms of the Eclipse Public License 2.0
6: * which is available at https://www.eclipse.org/legal/epl-2.0/
7: *
8: * SPDX-License-Identifier: EPL-2.0
9: *
10: * Contributors:
11: * Eurotech - initial API and implementation
12: *******************************************************************************/
13: package org.eclipse.kapua.service.account.internal.setting;
14:
15: import org.eclipse.kapua.commons.setting.SettingKey;
16:
17: /**
18: * Available settings key for account service
19: *
20: * @since 1.0
21: *
22: */
23: public enum KapuaAccountSettingKeys implements SettingKey {
24: /**
25: * The key value in the configuration resources.
26: */
27: ACCOUNT_KEY("account.key"),
28: ACCOUNT_EVENT_ADDRESS("account.eventAddress");
29:
30: private String key;
31:
32: /**
33: * Set up the {@code enum} with the key value provided
34: *
35: * @param key
36: * The value mapped by this {@link Enum} value
37: */
38: private KapuaAccountSettingKeys(String key) {
39: this.key = key;
40: }
41:
42: /**
43: * Gets the key for this {@link KapuaAccountSettingKeys}
44: *
45: */
46: public String key() {
47: return key;
48: }
49: }