Skip to content

Package: MessageXmlRegistry

MessageXmlRegistry

nameinstructionbranchcomplexitylinemethod
MessageXmlRegistry()
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%
newKapuaChannel()
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%
newKapuaMessage()
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%
newPayload()
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%
newPosition()
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) 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: * Red Hat Inc
13: *******************************************************************************/
14: package org.eclipse.kapua.message.xml;
15:
16: import org.eclipse.kapua.locator.KapuaLocator;
17: import org.eclipse.kapua.message.KapuaChannel;
18: import org.eclipse.kapua.message.KapuaMessage;
19: import org.eclipse.kapua.message.KapuaMessageFactory;
20: import org.eclipse.kapua.message.KapuaPayload;
21: import org.eclipse.kapua.message.KapuaPosition;
22:
23: import javax.xml.bind.annotation.XmlRegistry;
24:
25: /**
26: * Message XML factory class
27: */
28: @XmlRegistry
29: public class MessageXmlRegistry {
30:
31: private static final KapuaLocator LOCATOR = KapuaLocator.getInstance();
32: private static final KapuaMessageFactory KAPUA_MESSAGE_FACTORY = LOCATOR.getFactory(KapuaMessageFactory.class);
33:
34: public KapuaMessage newKapuaMessage() {
35: return KAPUA_MESSAGE_FACTORY.newMessage();
36: }
37:
38: public KapuaChannel newKapuaChannel() {
39: return KAPUA_MESSAGE_FACTORY.newChannel();
40: }
41:
42: public KapuaPayload newPayload() {
43: return KAPUA_MESSAGE_FACTORY.newPayload();
44: }
45:
46: public KapuaPosition newPosition() {
47: return KAPUA_MESSAGE_FACTORY.newPosition();
48: }
49: }