Skip to content

Package: GenericRequestXmlRegistry

GenericRequestXmlRegistry

nameinstructionbranchcomplexitylinemethod
GenericRequestXmlRegistry()
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%
newRequestChannel()
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%
newRequestMessage()
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%
newRequestPayload()
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%
newResponseChannel()
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%
newResponseMessage()
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%
newResponsePayload()
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: 8 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) 2017, 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.device.management.request;
14:
15: import org.eclipse.kapua.locator.KapuaLocator;
16: import org.eclipse.kapua.service.device.management.request.message.request.GenericRequestChannel;
17: import org.eclipse.kapua.service.device.management.request.message.request.GenericRequestMessage;
18: import org.eclipse.kapua.service.device.management.request.message.request.GenericRequestPayload;
19: import org.eclipse.kapua.service.device.management.request.message.response.GenericResponseChannel;
20: import org.eclipse.kapua.service.device.management.request.message.response.GenericResponseMessage;
21: import org.eclipse.kapua.service.device.management.request.message.response.GenericResponsePayload;
22:
23: import javax.xml.bind.annotation.XmlRegistry;
24:
25: @XmlRegistry
26: public class GenericRequestXmlRegistry {
27:
28: private static final KapuaLocator LOCATOR = KapuaLocator.getInstance();
29: private static final GenericRequestFactory FACTORY = LOCATOR.getFactory(GenericRequestFactory.class);
30:
31: public GenericRequestChannel newRequestChannel() {
32: return FACTORY.newRequestChannel();
33: }
34:
35: public GenericRequestPayload newRequestPayload() {
36: return FACTORY.newRequestPayload();
37: }
38:
39: public GenericRequestMessage newRequestMessage() {
40: return FACTORY.newRequestMessage();
41: }
42:
43: public GenericResponseChannel newResponseChannel() {
44: return FACTORY.newResponseChannel();
45: }
46:
47: public GenericResponsePayload newResponsePayload() {
48: return FACTORY.newResponsePayload();
49: }
50:
51: public GenericResponseMessage newResponseMessage() {
52: return FACTORY.newResponseMessage();
53: }
54: }