reworked the Adapter API in order to allow to provide adapter parameters by reusing the Service methods (setInterface, setImplementation, etc ...)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@947482 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/AdapterServiceBuilder.java b/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/AdapterServiceBuilder.java
index 90a66d6..1d81cad 100644
--- a/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/AdapterServiceBuilder.java
+++ b/dependencymanager/runtime/src/main/java/org/apache/felix/dm/runtime/AdapterServiceBuilder.java
@@ -50,7 +50,9 @@
Dictionary<String, Object> adapterProperties = serviceMetaData.getDictionary(Params.adapterProperties, null);
Class<?> adapteeService = b.loadClass(serviceMetaData.getString(Params.adapteeService));
String adapteeFilter = serviceMetaData.getString(Params.adapteeFilter, null);
- Service service = dm.createAdapterService(adapteeService, adapteeFilter, adapterService, adapterImpl, adapterProperties);
+ Service service = dm.createAdapterService(adapteeService, adapteeFilter)
+ .setInterface(adapterService, adapterProperties)
+ .setImplementation(adapterImpl);
setCommonServiceParams(service, serviceMetaData);
for (MetaData dependencyMetaData: serviceDependencies)
{