Author: alesj
Date: 2009-11-28 15:27:48 -0500 (Sat, 28 Nov 2009)
New Revision: 97131
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
Log:
Use service registry.
Modified:
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
===================================================================
---
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java 2009-11-28
20:26:20 UTC (rev 97130)
+++
projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java 2009-11-28
20:27:48 UTC (rev 97131)
@@ -98,6 +98,7 @@
import org.osgi.framework.ServiceEvent;
import org.osgi.framework.ServiceReference;
import org.osgi.framework.Version;
+import org.osgi.framework.ServiceRegistration;
import org.osgi.service.packageadmin.PackageAdmin;
/**
@@ -1370,9 +1371,9 @@
*/
void unregisterContext(ControllerContext context)
{
- if (context instanceof OSGiServiceState)
+ if (context instanceof ServiceRegistration)
{
- OSGiServiceState service = (OSGiServiceState)context;
+ ServiceRegistration service = (ServiceRegistration)context;
service.unregister();
}
}