Skip to content

Commit

Permalink
Remove dependency on legacy DeploymentService
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Diesler committed Jul 13, 2010
1 parent 1043e9d commit fcd2a9f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 168 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<parent>
<groupId>org.jboss.osgi</groupId>
<artifactId>jboss-osgi-parent</artifactId>
<version>1.0.6</version>
<version>1.0.7-SNAPSHOT</version>
</parent>

<!-- Subversion -->
Expand All @@ -38,8 +38,8 @@

<properties>
<version.felix.framework>3.0.1</version.felix.framework>
<version.jboss.osgi.deployment>1.0.2</version.jboss.osgi.deployment>
<version.jboss.osgi.spi>1.0.7</version.jboss.osgi.spi>
<version.jboss.osgi.deployment>1.0.3-SNAPSHOT</version.jboss.osgi.deployment>
<version.jboss.osgi.spi>1.0.9-SNAPSHOT</version.jboss.osgi.spi>
<version.osgi>4.2.0</version.osgi>
</properties>

Expand Down
20 changes: 0 additions & 20 deletions src/main/java/org/jboss/osgi/felix/FelixBootstrapProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@
*/
package org.jboss.osgi.felix;

//$Id$

import java.util.Map;

import org.jboss.logging.Logger;
import org.jboss.osgi.deployment.DeploymentServicesActivator;
import org.jboss.osgi.spi.framework.PropertiesBootstrapProvider;
import org.jboss.osgi.spi.util.ServiceLoader;
import org.osgi.framework.BundleContext;
import org.osgi.framework.launch.Framework;
import org.osgi.framework.launch.FrameworkFactory;

Expand All @@ -44,8 +40,6 @@ public class FelixBootstrapProvider extends PropertiesBootstrapProvider
// Provide logging
private static final Logger log = Logger.getLogger(FelixBootstrapProvider.class);

private DeploymentServicesActivator deploymentActivator;

@Override
protected Framework createFramework(Map<String, Object> properties)
{
Expand All @@ -66,18 +60,4 @@ protected Framework createFramework(Map<String, Object> properties)
Framework framework = factory.newFramework(properties);
return framework;
}

@Override
protected void registerSystemServices(BundleContext context)
{
deploymentActivator = new DeploymentServicesActivator();
deploymentActivator.start(context);
}

@Override
protected void unregisterSystemServices(BundleContext context)
{
if (deploymentActivator != null)
deploymentActivator.stop(context);
}
}
140 changes: 0 additions & 140 deletions src/main/java/org/jboss/osgi/felix/FelixIntegration.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,16 @@
*/
package org.jboss.test.osgi.felix;

//$Id$

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.jboss.osgi.deployment.deployer.DeployerService;
import org.jboss.osgi.spi.framework.OSGiBootstrap;
import org.jboss.osgi.spi.framework.OSGiBootstrapProvider;
import org.junit.Test;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.framework.launch.Framework;
import org.osgi.service.packageadmin.PackageAdmin;

/**
* Test OSGi System bundle access
Expand All @@ -55,8 +53,8 @@ public void testFrameworkLaunch() throws Exception
try
{
BundleContext context = framework.getBundleContext();
ServiceReference sref = context.getServiceReference(DeployerService.class.getName());
assertNotNull("DeployerService not null", sref);
ServiceReference sref = context.getServiceReference(PackageAdmin.class.getName());
assertNotNull("PackageAdmin not null", sref);
}
finally
{
Expand Down

0 comments on commit fcd2a9f

Please sign in to comment.