/*
 * JBoss, Home of Professional Open Source
 * Copyright 2005, JBoss Inc., and individual contributors as indicated
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jboss.osgi.deployment.deployer;

//$Id$

import org.jboss.osgi.deployment.internal.DeploymentImpl;
import org.jboss.osgi.spi.util.BundleInfo;
import org.jboss.osgi.vfs.VirtualFile;
import org.osgi.framework.BundleException;
import org.osgi.framework.Version;

/**
 * A deployment factory.
 * 
 * @author thomas.diesler@jboss.com
 * @since 16-Oct-2009
 */
public class DeploymentFactory
{
   // Hide default ctor
   private DeploymentFactory()
   {
   }
   
   public static Deployment createDeployment(VirtualFile rootFile, String location, String symbolicName, Version version)
   {
      return new DeploymentImpl(rootFile, location, symbolicName, version);
   }
   
   public static Deployment createDeployment(BundleInfo info) throws BundleException
   {
      if (info == null)
         throw new IllegalArgumentException("Null info");
      return new DeploymentImpl(info.getRoot(), info.getLocation(), info.getSymbolicName(), info.getVersion());
   }
}
@@ -1204,51 +1204,8 @@
 le;%0A
-import org.osgi.framework.BundleException;%0A
 impo
@@ -1235,16 +1235,16 @@
 ersion;%0A
+
 %0A/**%0A * 
@@ -1267,17 +1267,16 @@
 tory.%0A *
- 
 %0A * @aut
@@ -1424,28 +1424,25 @@
 )%0A   %7B%0A   %7D%0A
-   
 %0A
+
    public st
@@ -1637,19 +1637,16 @@
 );%0A   %7D%0A
-   
 %0A   publ
@@ -1703,31 +1703,8 @@
 nfo)
- throws BundleException
 %0A   

Remove BundleException from createDeployment