felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r893232 - /felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyManager.java
Date Tue, 22 Dec 2009 17:06:47 GMT
Author: marrs
Date: Tue Dec 22 17:06:46 2009
New Revision: 893232

URL: http://svn.apache.org/viewvc?rev=893232&view=rev
Log:
exposed setting of properties for a resource adapter

Modified:
    felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyManager.java

Modified: felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyManager.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyManager.java?rev=893232&r1=893231&r2=893232&view=diff
==============================================================================
--- felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyManager.java
(original)
+++ felix/trunk/dependencymanager/core/src/main/java/org/apache/felix/dm/DependencyManager.java
Tue Dec 22 17:06:46 2009
@@ -40,7 +40,6 @@
 import org.apache.felix.dm.impl.dependencies.ServiceDependencyImpl;
 import org.apache.felix.dm.impl.dependencies.TemporalServiceDependencyImpl;
 import org.apache.felix.dm.service.Service;
-import org.osgi.framework.BundleContext;
 
 /**
  * The dependency manager. Manages all services and their dependencies.
@@ -177,20 +176,19 @@
                 .setService(serviceInterface)
                 .setAutoConfig(false)
                 .setCallbacks("added", "removed")
-                );
+            );
     }
     
     // TODO note to self, there are Dependency's and DependencyCollections 
     // (being a dependency on more than one, fi ServiceDendency, ResourceDependency
-    public Service createResourceAdapterService(String resourceFilter, Class iface2, Object
impl, boolean propagate) {
+    public Service createResourceAdapterService(String resourceFilter, Class adapterInterface,
Dictionary adapterProperties, Object impl, boolean propagate) {
         return createService()
-            .setImplementation(new ResourceAdapterImpl(resourceFilter, impl, iface2.getName(),
null, propagate))
+            .setImplementation(new ResourceAdapterImpl(resourceFilter, impl, adapterInterface.getName(),
adapterProperties, propagate))
             .add(createResourceDependency()
                 .setFilter(resourceFilter)
                 .setAutoConfig(false)
                 .setCallbacks("added", "removed")
-                )
-                ;
+            );
     }
     
     public Service createBundleAdapterService(int stateMask, String filter, Object impl,
Class iface) {
@@ -200,8 +198,7 @@
                 .setFilter(filter)
                 .setStateMask(stateMask)
                 .setCallbacks("added", "removed")
-                )
-            ;
+            );
     }
 
     /**



Mime
View raw message