felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r1086720 - /felix/trunk/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/ToggleServiceDependency.java
Date Tue, 29 Mar 2011 20:20:46 GMT
Author: pderop
Date: Tue Mar 29 20:20:46 2011
New Revision: 1086720

URL: http://svn.apache.org/viewvc?rev=1086720&view=rev
Log:
Fixed isAutoConfig, which must return false, instead of true. Don't invoke any callbacks.

Modified:
    felix/trunk/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/ToggleServiceDependency.java

Modified: felix/trunk/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/ToggleServiceDependency.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/ToggleServiceDependency.java?rev=1086720&r1=1086719&r2=1086720&view=diff
==============================================================================
--- felix/trunk/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/ToggleServiceDependency.java
(original)
+++ felix/trunk/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/ToggleServiceDependency.java
Tue Mar 29 20:20:46 2011
@@ -119,32 +119,19 @@ public class ToggleServiceDependency imp
 
     public void invokeAdded(DependencyService service)
     {
-        invoke(service, "added");
     }
 
     public void invokeRemoved(DependencyService service)
     {
-        invoke(service, "removed");
     }
 
     public void invoke(DependencyService dependencyService, String name)
     {
-        if (name != null)
-        {
-            dependencyService.invokeCallbackMethod(getCallbackInstances(dependencyService),
name,
-                                                   new Class[][] { { String.class }, { Object.class
}, {} },
-                                                   new Object[][] { { getAutoConfigInstance()
}, { getAutoConfigInstance() }, {} });
-        }
-    }
-
-    private synchronized Object[] getCallbackInstances(DependencyService dependencyService)
-    {
-        return dependencyService.getCompositionInstances();
     }
 
     public boolean isAutoConfig()
     {
-        return true;
+        return false;
     }
 
     public boolean isAvailable()



Mime
View raw message