cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1205538 - in /cxf/trunk/rt/core/src/main: java/org/apache/cxf/bus/blueprint/CXFCoreNamespaceHandler.java resources/OSGI-INF/blueprint/cxf-core.xml
Date Wed, 23 Nov 2011 19:07:15 GMT
Author: dkulp
Date: Wed Nov 23 19:07:15 2011
New Revision: 1205538

URL: http://svn.apache.org/viewvc?rev=1205538&view=rev
Log:
Updates to CXF's namespace handler to support the other namespaces that
may be encountered.   More or less requires ARIES-626 to actually work
though.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/blueprint/CXFCoreNamespaceHandler.java
    cxf/trunk/rt/core/src/main/resources/OSGI-INF/blueprint/cxf-core.xml

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/blueprint/CXFCoreNamespaceHandler.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/blueprint/CXFCoreNamespaceHandler.java?rev=1205538&r1=1205537&r2=1205538&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/blueprint/CXFCoreNamespaceHandler.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/blueprint/CXFCoreNamespaceHandler.java
Wed Nov 23 19:07:15 2011
@@ -32,19 +32,23 @@ import org.apache.cxf.configuration.blue
 import org.apache.cxf.feature.FastInfosetFeature;
 import org.apache.cxf.feature.LoggingFeature;
 import org.apache.cxf.workqueue.AutomaticWorkQueueImpl;
-import org.osgi.service.blueprint.container.BlueprintContainer;
 import org.osgi.service.blueprint.reflect.ComponentMetadata;
 import org.osgi.service.blueprint.reflect.Metadata;
 
 /**
  * 
  */
-public class CXFCoreNamespaceHandler implements NamespaceHandler {
-    private BlueprintContainer blueprintContainer;
-    
+public class CXFCoreNamespaceHandler implements NamespaceHandler {    
     
     public URL getSchemaLocation(String namespace) {
-        return getClass().getClassLoader().getResource("/schemas/blueprint/core.xsd");
+        if ("http://cxf.apache.org/blueprint/core".equals(namespace)) {
+            return getClass().getClassLoader().getResource("/schemas/blueprint/core.xsd");
+        } else if ("http://cxf.apache.org/configuration/beans".equals(namespace)) {
+            return getClass().getClassLoader().getResource("/schemas/configuration/cxf-beans.xsd");
          
+        } else if ("http://cxf.apache.org/configuration/parameterized-types".equals(namespace))
{
+            return getClass().getClassLoader().getResource("/schemas/configuration/parameterized-types.xsd");
+        }
+        return null;
     }
 
 
@@ -88,13 +92,4 @@ public class CXFCoreNamespaceHandler imp
         return null;
     }
     
-
-    public BlueprintContainer getBlueprintContainer() {
-        return blueprintContainer;
-    }
-
-    public void setBlueprintContainer(BlueprintContainer blueprintContainer) {
-        this.blueprintContainer = blueprintContainer;
-    }
-    
 }

Modified: cxf/trunk/rt/core/src/main/resources/OSGI-INF/blueprint/cxf-core.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/resources/OSGI-INF/blueprint/cxf-core.xml?rev=1205538&r1=1205537&r2=1205538&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/resources/OSGI-INF/blueprint/cxf-core.xml (original)
+++ cxf/trunk/rt/core/src/main/resources/OSGI-INF/blueprint/cxf-core.xml Wed Nov 23 19:07:15
2011
@@ -24,7 +24,13 @@
 
   <service interface="org.apache.aries.blueprint.NamespaceHandler">
     <service-properties>
-      <entry key="osgi.service.blueprint.namespace" value="http://cxf.apache.org/blueprint/core"/>
+      <entry key="osgi.service.blueprint.namespace">
+        <list>
+            <value>http://cxf.apache.org/blueprint/core</value>
+            <value>http://cxf.apache.org/configuration/beans</value>
+            <value>http://cxf.apache.org/configuration/parameterized-types</value>
+        </list>
+      </entry>
     </service-properties>
     <bean class="org.apache.cxf.bus.blueprint.CXFCoreNamespaceHandler"/>
   </service>



Mime
View raw message