Skip to content

Package: CertificateXmlRegistry

CertificateXmlRegistry

nameinstructionbranchcomplexitylinemethod
CertificateXmlRegistry()
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%
newCertificate()
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%
newCertificateGenerator()
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%
newCertificateUsage()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
newCreator()
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%
newListResult()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
newQuery()
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%
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.certificate.xml;
14:
15: import org.eclipse.kapua.locator.KapuaLocator;
16: import org.eclipse.kapua.service.certificate.Certificate;
17: import org.eclipse.kapua.service.certificate.CertificateCreator;
18: import org.eclipse.kapua.service.certificate.CertificateFactory;
19: import org.eclipse.kapua.service.certificate.CertificateGenerator;
20: import org.eclipse.kapua.service.certificate.CertificateListResult;
21: import org.eclipse.kapua.service.certificate.CertificateQuery;
22: import org.eclipse.kapua.service.certificate.CertificateUsage;
23:
24: import javax.xml.bind.annotation.XmlRegistry;
25:
26: @XmlRegistry
27: public class CertificateXmlRegistry {
28:
29: private static final KapuaLocator LOCATOR = KapuaLocator.getInstance();
30: private static final CertificateFactory FACTORY = LOCATOR.getFactory(CertificateFactory.class);
31:
32: public Certificate newCertificate() {
33: return FACTORY.newEntity(null);
34: }
35:
36: public CertificateCreator newCreator() {
37: return FACTORY.newCreator(null);
38: }
39:
40: public CertificateQuery newQuery() {
41: return FACTORY.newQuery(null);
42: }
43:
44: public CertificateListResult newListResult() {
45: return FACTORY.newListResult();
46: }
47:
48: public CertificateGenerator newCertificateGenerator() {
49: return FACTORY.newCertificateGenerator();
50: }
51:
52: public CertificateUsage newCertificateUsage() {
53: return FACTORY.newCertificateUsage(null);
54: }
55: }