Skip to content

Package: EncryptionMigrationSettings

EncryptionMigrationSettings

nameinstructionbranchcomplexitylinemethod
EncryptionMigrationSettings()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
getInstance()
M: 2 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: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 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.extras.migrator.encryption.settings;
14:
15: import org.eclipse.kapua.commons.setting.AbstractKapuaSetting;
16:
17: /**
18: * {@link EncryptionMigrationSettings} for {@code kapua-encryption-migrator} module.
19: *
20: * @see AbstractKapuaSetting
21: * @since 2.0.0
22: */
23: public class EncryptionMigrationSettings extends AbstractKapuaSetting<EncryptionMigrationSettingKeys> {
24:
25: /**
26: * Setting filename.
27: *
28: * @since 2.0.0
29: */
30: private static final String SETTINGS_RESOURCE = "encryption-migrator-settings.properties";
31:
32: /**
33: * Singleton instance.
34: *
35: * @since 2.0.0
36: */
37: private static final EncryptionMigrationSettings INSTANCE = new EncryptionMigrationSettings();
38:
39: /**
40: * Constructor.
41: *
42: * @since 2.0.0
43: */
44: private EncryptionMigrationSettings() {
45: super(SETTINGS_RESOURCE);
46: }
47:
48: /**
49: * Gets a singleton instance of {@link EncryptionMigrationSettings}.
50: *
51: * @return A singleton instance of {@link EncryptionMigrationSettings}.
52: * @since 2.0.0
53: */
54: public static EncryptionMigrationSettings getInstance() {
55: return INSTANCE;
56: }
57: }