/*******************************************************************************
 * Copyright (c) 2011, 2016 Eurotech and/or its affiliates
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Eurotech - initial API and implementation
 *
 *******************************************************************************/

package org.eclipse.kapua.service.device.management.packages.model;

import javax.xml.bind.annotation.XmlRegistry;

import org.eclipse.kapua.locator.KapuaLocator;
import org.eclipse.kapua.service.device.management.packages.DevicePackageFactory;
import org.eclipse.kapua.service.device.management.packages.model.download.DevicePackageDownloadRequest;
import org.eclipse.kapua.service.device.management.packages.model.uninstall.DevicePackageUninstallRequest;

/**
 * Device package xml factory class
 * 
 * @since 1.0
 *
 */
@XmlRegistry
public class DevicePackageXmlRegistry {

    private final KapuaLocator locator = KapuaLocator.getInstance();
    private final DevicePackageFactory factory = locator.getFactory(DevicePackageFactory.class);
    
    /**
     * Creates a new device package instance
     * 
     * @return
     */
    public DevicePackage newDevicePackage() {
        return factory.newDeviceDeploymentPackage();
    }
    
    /**
     * Creates a new device packages instance
     * 
     * @return
     */
    public DevicePackages newDevicePackages() {
        return factory.newDeviceDeploymentPackages();
    }
    
    /**
     * Creates a new device package bundle information instance
     * 
     * @return
     */
    public DevicePackageBundleInfo newDevicePackageBundleInfo() {
        return factory.newDevicePackageBundleInfo();
    }
    
    /**
     * Creates a new device package bundle informations instance
     * 
     * @return
     */
    public DevicePackageBundleInfos newDevicePackageBundleInfos() {
        return factory.newDevicePackageBundleInfos();
    }

    /**
     * Creates a new device package download request instance
     * 
     * @return
     */
    public DevicePackageDownloadRequest newDevicePackageDownloadRequest()
    {
        return factory.newPackageDownloadRequest();
    }

    /**
     * Creates a new device package uninstall request instance
     * 
     * @return
     */
    public DevicePackageUninstallRequest newDevicePackageUninstallRequest()
    {
        return factory.newPackageUninstallRequest();
    }
}

@@ -1280,21 +1280,17 @@
 class);%0A
-    
 %0A
+
     /**%0A
@@ -1462,37 +1462,33 @@
 ackage();%0A    %7D%0A
-    
 %0A
+
     /**%0A     * C
@@ -1656,37 +1656,33 @@
 ckages();%0A    %7D%0A
-    
 %0A
+
     /**%0A     * C
@@ -1897,13 +1897,9 @@
   %7D%0A
-    
 %0A
+
     
@@ -2293,36 +2293,32 @@
 ownloadRequest()
-%0A   
  %7B%0A        retur
@@ -2457,32 +2457,32 @@
 @return%0A     */%0A
+
     public Devic
@@ -2540,20 +2540,16 @@
 equest()
-%0A   
  %7B%0A     

Apply code formatter