Skip to content

Package: DevicePackageFactoryImpl

DevicePackageFactoryImpl

nameinstructionbranchcomplexitylinemethod
DevicePackageFactoryImpl()
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%
newAdvancedPackageDownloadOptions()
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%
newDeviceDeploymentPackage()
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%
newDeviceDeploymentPackages()
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%
newDevicePackageBundleInfo()
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%
newDevicePackageBundleInfos()
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%
newPackageDownloadOperation()
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%
newPackageDownloadOptions()
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%
newPackageDownloadRequest()
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%
newPackageInstallOperation()
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%
newPackageInstallOptions()
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%
newPackageInstallRequest()
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%
newPackageUninstallOperation()
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%
newPackageUninstallOptions()
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%
newPackageUninstallRequest()
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%

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.service.device.management.packages.internal;
14:
15: import org.eclipse.kapua.locator.KapuaProvider;
16: import org.eclipse.kapua.service.device.management.packages.DevicePackageFactory;
17: import org.eclipse.kapua.service.device.management.packages.model.DevicePackage;
18: import org.eclipse.kapua.service.device.management.packages.model.DevicePackageBundleInfo;
19: import org.eclipse.kapua.service.device.management.packages.model.DevicePackageBundleInfos;
20: import org.eclipse.kapua.service.device.management.packages.model.DevicePackages;
21: import org.eclipse.kapua.service.device.management.packages.model.download.AdvancedPackageDownloadOptions;
22: import org.eclipse.kapua.service.device.management.packages.model.download.DevicePackageDownloadOperation;
23: import org.eclipse.kapua.service.device.management.packages.model.download.DevicePackageDownloadOptions;
24: import org.eclipse.kapua.service.device.management.packages.model.download.DevicePackageDownloadRequest;
25: import org.eclipse.kapua.service.device.management.packages.model.download.internal.AdvancedPackageDownloadOptionsImpl;
26: import org.eclipse.kapua.service.device.management.packages.model.download.internal.DevicePackageDownloadOperationImpl;
27: import org.eclipse.kapua.service.device.management.packages.model.download.internal.DevicePackageDownloadOptionsImpl;
28: import org.eclipse.kapua.service.device.management.packages.model.download.internal.DevicePackageDownloadRequestImpl;
29: import org.eclipse.kapua.service.device.management.packages.model.install.DevicePackageInstallOperation;
30: import org.eclipse.kapua.service.device.management.packages.model.install.DevicePackageInstallOptions;
31: import org.eclipse.kapua.service.device.management.packages.model.install.DevicePackageInstallRequest;
32: import org.eclipse.kapua.service.device.management.packages.model.install.internal.DevicePackageInstallOperationImpl;
33: import org.eclipse.kapua.service.device.management.packages.model.install.internal.DevicePackageInstallOptionsImpl;
34: import org.eclipse.kapua.service.device.management.packages.model.install.internal.DevicePackageInstallRequestImpl;
35: import org.eclipse.kapua.service.device.management.packages.model.internal.DevicePackageBundleInfoImpl;
36: import org.eclipse.kapua.service.device.management.packages.model.internal.DevicePackageBundleInfosImpl;
37: import org.eclipse.kapua.service.device.management.packages.model.internal.DevicePackageImpl;
38: import org.eclipse.kapua.service.device.management.packages.model.internal.DevicePackagesImpl;
39: import org.eclipse.kapua.service.device.management.packages.model.uninstall.DevicePackageUninstallOperation;
40: import org.eclipse.kapua.service.device.management.packages.model.uninstall.DevicePackageUninstallOptions;
41: import org.eclipse.kapua.service.device.management.packages.model.uninstall.DevicePackageUninstallRequest;
42: import org.eclipse.kapua.service.device.management.packages.model.uninstall.internal.DevicePackageUninstallOperationImpl;
43: import org.eclipse.kapua.service.device.management.packages.model.uninstall.internal.DevicePackageUninstallOptionsImpl;
44: import org.eclipse.kapua.service.device.management.packages.model.uninstall.internal.DevicePackageUninstallRequestImpl;
45:
46: /**
47: * {@link DevicePackageFactory} implementation.
48: *
49: * @since 1.0.0
50: */
51: @KapuaProvider
52: public class DevicePackageFactoryImpl implements DevicePackageFactory {
53:
54: @Override
55: public DevicePackages newDeviceDeploymentPackages() {
56: return new DevicePackagesImpl();
57: }
58:
59: @Override
60: public DevicePackage newDeviceDeploymentPackage() {
61: return new DevicePackageImpl();
62: }
63:
64: @Override
65: public DevicePackageBundleInfo newDevicePackageBundleInfo() {
66: return new DevicePackageBundleInfoImpl();
67: }
68:
69: @Override
70: public DevicePackageBundleInfos newDevicePackageBundleInfos() {
71: return new DevicePackageBundleInfosImpl();
72: }
73:
74: //
75: // Download operation
76: //
77: @Override
78: public DevicePackageDownloadRequest newPackageDownloadRequest() {
79: return new DevicePackageDownloadRequestImpl();
80: }
81:
82: @Override
83: public DevicePackageDownloadOperation newPackageDownloadOperation() {
84: return new DevicePackageDownloadOperationImpl();
85: }
86:
87: @Override
88: public DevicePackageDownloadOptions newPackageDownloadOptions() {
89: return new DevicePackageDownloadOptionsImpl();
90: }
91:
92: @Override
93: public AdvancedPackageDownloadOptions newAdvancedPackageDownloadOptions() {
94: return new AdvancedPackageDownloadOptionsImpl();
95: }
96:
97: //
98: // Install operation
99: //
100: @Override
101: public DevicePackageInstallRequest newPackageInstallRequest() {
102: return new DevicePackageInstallRequestImpl();
103: }
104:
105: @Override
106: public DevicePackageInstallOptions newPackageInstallOptions() {
107: return new DevicePackageInstallOptionsImpl();
108: }
109:
110: @Override
111: public DevicePackageInstallOperation newPackageInstallOperation() {
112: return new DevicePackageInstallOperationImpl();
113: }
114:
115: //
116: // Uninstall operation
117: //
118: @Override
119: public DevicePackageUninstallRequest newPackageUninstallRequest() {
120: return new DevicePackageUninstallRequestImpl();
121: }
122:
123: @Override
124: public DevicePackageUninstallOptions newPackageUninstallOptions() {
125: return new DevicePackageUninstallOptionsImpl();
126: }
127:
128: @Override
129: public DevicePackageUninstallOperation newPackageUninstallOperation() {
130: return new DevicePackageUninstallOperationImpl();
131: }
132: }