cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r797957 - /cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/Activator.java
Date Sun, 26 Jul 2009 17:21:09 GMT
Author: davidb
Date: Sun Jul 26 17:21:09 2009
New Revision: 797957

URL: http://svn.apache.org/viewvc?rev=797957&view=rev
Log:
Setting remote.configs.supported and remote.intents.supported properties on Distribution Provider
Service, as required by spec.

Modified:
    cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/Activator.java

Modified: cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/Activator.java
URL: http://svn.apache.org/viewvc/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/Activator.java?rev=797957&r1=797956&r2=797957&view=diff
==============================================================================
--- cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/Activator.java (original)
+++ cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/Activator.java Sun
Jul 26 17:21:09 2009
@@ -89,9 +89,17 @@
         props.put(DistributionProvider.PRODUCT_VERSION, getHeader("Bundle-Version"));
         props.put(DistributionProvider.VENDOR_NAME, getHeader("Bundle-Vendor"));
                 
-        String supportedIntents = OsgiUtils.formatIntents(
-            getIntentMap().getIntents().keySet().toArray(new String [] {}));
-        props.put(DistributionProvider.SUPPORTED_INTENTS, supportedIntents);
+        String[] supportedIntents = getIntentMap().getIntents().keySet().toArray(new String
[] {});
+        String siString = OsgiUtils.formatIntents(supportedIntents);
+        props.put(DistributionProvider.SUPPORTED_INTENTS, siString);
+        props.put("remote.intents.supported", supportedIntents);
+
+        // TODO make this a little smarter
+        String[] supportedConfigs = {
+                org.apache.cxf.dosgi.dsw.Constants.WS_CONFIG_TYPE, 
+                org.apache.cxf.dosgi.dsw.Constants.WS_CONFIG_TYPE_OLD, 
+                org.apache.cxf.dosgi.dsw.Constants.RS_CONFIG_TYPE};
+        props.put("remote.configs.supported", supportedConfigs);
         
         bc.registerService(DistributionProvider.class.getName(), dpService, props);
         return dpService;



Mime
View raw message