Package: GenericRequestXmlRegistry
GenericRequestXmlRegistry
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GenericRequestXmlRegistry() |
|
|
|
|
|
||||||||||||||||||||
newRequestChannel() |
|
|
|
|
|
||||||||||||||||||||
newRequestMessage() |
|
|
|
|
|
||||||||||||||||||||
newRequestPayload() |
|
|
|
|
|
||||||||||||||||||||
newResponseChannel() |
|
|
|
|
|
||||||||||||||||||||
newResponseMessage() |
|
|
|
|
|
||||||||||||||||||||
newResponsePayload() |
|
|
|
|
|
||||||||||||||||||||
static {...} |
|
|
|
|
|
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: }