Skip to content

Package: ServiceConfigCreatorImpl

ServiceConfigCreatorImpl

nameinstructionbranchcomplexitylinemethod
ServiceConfigCreatorImpl(KapuaId)
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%
getConfigurations()
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%
getPid()
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%
setConfigurations(Properties)
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%
setPid(String)
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%

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.commons.configuration;
14:
15: import java.util.Properties;
16:
17: import javax.xml.bind.annotation.XmlElement;
18:
19: import org.eclipse.kapua.commons.model.AbstractKapuaUpdatableEntityCreator;
20: import org.eclipse.kapua.model.id.KapuaId;
21:
22: /**
23: * Service configuration creator reference implementation.
24: *
25: * @since 1.0
26: *
27: */
28: public class ServiceConfigCreatorImpl extends AbstractKapuaUpdatableEntityCreator<ServiceConfig>
29: implements ServiceConfigCreator {
30:
31: private static final long serialVersionUID = 7508550960304732465L;
32:
33: @XmlElement(name = "pid")
34: private String pid;
35:
36: @XmlElement(name = "configurations")
37: private Properties configurations;
38:
39: /**
40: * Constructor
41: *
42: * @param scopeId
43: */
44: protected ServiceConfigCreatorImpl(KapuaId scopeId) {
45: super(scopeId);
46: }
47:
48: @Override
49: public String getPid() {
50: return pid;
51: }
52:
53: @Override
54: public void setPid(String pid) {
55: this.pid = pid;
56: }
57:
58: @Override
59: public Properties getConfigurations() {
60: return this.configurations;
61: }
62:
63: @Override
64: public void setConfigurations(Properties configurations) {
65: this.configurations = configurations;
66: }
67: }