felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From guilla...@apache.org
Subject svn commit: r1492129 - /felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java
Date Wed, 12 Jun 2013 09:59:17 GMT
Author: guillaume
Date: Wed Jun 12 09:59:17 2013
New Revision: 1492129

URL: http://svn.apache.org/r1492129
Log:
FELIX-4119 Allow customization of DependencyHandler created Callbacks

Modified:
    felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java

Modified: felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java?rev=1492129&r1=1492128&r2=1492129&view=diff
==============================================================================
--- felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java
(original)
+++ felix/trunk/ipojo/runtime/core/src/main/java/org/apache/felix/ipojo/handlers/dependency/DependencyHandler.java
Wed Jun 12 09:59:17 2013
@@ -584,11 +584,14 @@ public class DependencyHandler extends P
                 methodType = DependencyCallback.MODIFIED;
             }
 
-            DependencyCallback callback = new DependencyCallback(dep, method, methodType);
-            dep.addDependencyCallback(callback);
+            dep.addDependencyCallback(createDependencyCallback(dep, method, methodType));
         }
     }
 
+    protected DependencyCallback createDependencyCallback(final Dependency dep, final String
method, final int type) {
+        return new DependencyCallback(dep, method, type);
+    }
+
     private Filter createAndCheckFilter(String filter) throws ConfigurationException {
         Filter fil = null;
         if (filter != null) {



Mime
View raw message