cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1088737 - in /cxf/trunk/rt/bindings/object/src/main: java/org/apache/cxf/binding/object/blueprint/ resources/OSGI-INF/ resources/OSGI-INF/blueprint/ resources/schemas/bindings/blueprint/
Date Mon, 04 Apr 2011 19:14:52 GMT
Author: dkulp
Date: Mon Apr  4 19:14:51 2011
New Revision: 1088737

URL: http://svn.apache.org/viewvc?rev=1088737&view=rev
Log:
[CXF-3437] Add blueprint support for object binding
Patch from Johan Edstrom applied.

Added:
    cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/
    cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/ObjectBindingBPHandler.java
  (with props)
    cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/
    cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/
    cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml
  (with props)
    cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/
    cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd
  (with props)

Added: cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/ObjectBindingBPHandler.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/ObjectBindingBPHandler.java?rev=1088737&view=auto
==============================================================================
--- cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/ObjectBindingBPHandler.java
(added)
+++ cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/ObjectBindingBPHandler.java
Mon Apr  4 19:14:51 2011
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.binding.object.blueprint;
+
+import java.net.URL;
+import java.util.Set;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+import org.apache.aries.blueprint.NamespaceHandler;
+import org.apache.aries.blueprint.ParserContext;
+import org.apache.cxf.binding.object.ObjectBindingConfiguration;
+import org.apache.cxf.configuration.blueprint.SimpleBPBeanDefinitionParser;
+import org.osgi.service.blueprint.reflect.ComponentMetadata;
+import org.osgi.service.blueprint.reflect.Metadata;
+
+public class ObjectBindingBPHandler implements NamespaceHandler {
+
+    public URL getSchemaLocation(String s) {
+        return getClass().getClassLoader().getResource("/schemas/bindings/blueprint/object.xsd");
+    }
+
+    public Set<Class> getManagedClasses() {
+        return null;
+    }
+
+    public Metadata parse(Element element, ParserContext context) {
+        return new SimpleBPBeanDefinitionParser(ObjectBindingConfiguration.class).parse(element,
context);
+    }
+
+    public ComponentMetadata decorate(Node node, ComponentMetadata componentMetadata, ParserContext
context) {
+        return null;
+    }
+}

Propchange: cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/ObjectBindingBPHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/rt/bindings/object/src/main/java/org/apache/cxf/binding/object/blueprint/ObjectBindingBPHandler.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml?rev=1088737&view=auto
==============================================================================
--- cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml
(added)
+++ cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml
Mon Apr  4 19:14:51 2011
@@ -0,0 +1,32 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License. You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied. See the License for the
+  specific language governing permissions and limitations
+  under the License.
+  -->
+
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
+           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
+
+  <service interface="org.apache.aries.blueprint.NamespaceHandler">
+    <service-properties>
+      <entry key="osgi.service.blueprint.namespace" value="http://cxf.apache.org/blueprint/binding/object"/>
+    </service-properties>
+    <bean class="org.apache.cxf.binding.object.blueprint.ObjectBindingBPHandler"/>
+  </service>
+</blueprint>
+

Propchange: cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/trunk/rt/bindings/object/src/main/resources/OSGI-INF/blueprint/object-binding.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd?rev=1088737&view=auto
==============================================================================
--- cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd
(added)
+++ cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd
Mon Apr  4 19:14:51 2011
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License. You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied. See the License for the
+  specific language governing permissions and limitations
+  under the License.
+  -->
+
+<xsd:schema xmlns="http://cxf.apache.org/blueprint/binding/object"
+            targetNamespace="http://cxf.apache.org/blueprint/binding/object"
+            xmlns:tns="http://cxf.apache.org/blueprint/binding/object"
+            xmlns:beans="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+            xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+            elementFormDefault="qualified"
+            attributeFormDefault="unqualified">
+
+<xsd:import namespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"/>
+
+  <xsd:element name="objectBinding">
+     <xsd:complexType>
+       <xsd:complexContent>
+         <xsd:extension base="beans:Tcomponent">
+         </xsd:extension>
+       </xsd:complexContent>
+     </xsd:complexType>
+   </xsd:element>
+
+
+</xsd:schema>
\ No newline at end of file

Propchange: cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: cxf/trunk/rt/bindings/object/src/main/resources/schemas/bindings/blueprint/object.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message