felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1604251 - /felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/src/org/apache/felix/dm/impl/ServiceDependencyImpl.java
Date Fri, 20 Jun 2014 19:06:02 GMT
Author: pderop
Date: Fri Jun 20 19:06:02 2014
New Revision: 1604251

URL: http://svn.apache.org/r1604251
Log:
Pass the bundle / bundleContext to the ServiceEventImpl constructor.


Modified:
    felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/src/org/apache/felix/dm/impl/ServiceDependencyImpl.java

Modified: felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/src/org/apache/felix/dm/impl/ServiceDependencyImpl.java
URL: http://svn.apache.org/viewvc/felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/src/org/apache/felix/dm/impl/ServiceDependencyImpl.java?rev=1604251&r1=1604250&r2=1604251&view=diff
==============================================================================
--- felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/src/org/apache/felix/dm/impl/ServiceDependencyImpl.java
(original)
+++ felix/sandbox/pderop/dependencymanager-prototype/org.apache.felix.dm/src/org/apache/felix/dm/impl/ServiceDependencyImpl.java
Fri Jun 20 19:06:02 2014
@@ -35,6 +35,7 @@ import org.apache.felix.dm.context.Depen
 import org.apache.felix.dm.context.Event;
 import org.apache.felix.dm.tracker.ServiceTracker;
 import org.apache.felix.dm.tracker.ServiceTrackerCustomizer;
+import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.Constants;
 import org.osgi.framework.InvalidSyntaxException;
@@ -246,17 +247,17 @@ public class ServiceDependencyImpl exten
 		if (debug) {
 			System.out.println(debugKey + " addedService");
 		}
-		add(new ServiceEventImpl(reference, service));
+		add(new ServiceEventImpl(m_bundle, m_context, reference, service));
 	}
 
 	@Override
 	public void modifiedService(ServiceReference reference, Object service) {
-		change(new ServiceEventImpl(reference, service));
+		change(new ServiceEventImpl(m_bundle, m_context, reference, service));
 	}
 
 	@Override
 	public void removedService(ServiceReference reference, Object service) {
-		remove(new ServiceEventImpl(reference, service));
+		remove(new ServiceEventImpl(m_bundle, m_context, reference, service));
 	}
 	
 	@Override
@@ -506,7 +507,7 @@ public class ServiceDependencyImpl exten
 			// getting out of order.		    		    
 		    // We delegate the swap handling to the ComponentImpl, which is the class responsible
for state management.
 		    // The ComponentImpl will first check if the component is in the proper state so the
swap method can be invoked.		    
-		    swap(new ServiceEventImpl(reference, service), new ServiceEventImpl(newReference, newService));
+		    swap(new ServiceEventImpl(m_bundle, m_context, reference, service), new ServiceEventImpl(m_bundle,
m_context, newReference, newService));
 		} else {
 			addedService(newReference, newService);
 			removedService(reference, service);



Mime
View raw message