cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-6477] Adding jaxrs schema publish attribute
Date Tue, 30 Jun 2015 15:43:40 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a24039d4f -> a20b5efb6


[CXF-6477] Adding jaxrs schema publish attribute


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/a20b5efb
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a20b5efb
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a20b5efb

Branch: refs/heads/master
Commit: a20b5efb6a21dc46b63097eb57896d6e7be2093c
Parents: a24039d
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Tue Jun 30 16:43:24 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Tue Jun 30 16:43:24 2015 +0100

----------------------------------------------------------------------
 .../jaxrs/blueprint/JAXRSServerFactoryBeanDefinitionParser.java    | 2 ++
 .../cxf/jaxrs/spring/JAXRSServerFactoryBeanDefinitionParser.java   | 2 ++
 rt/frontend/jaxrs/src/main/resources/schemas/blueprint/jaxrs.xsd   | 1 +
 rt/frontend/jaxrs/src/main/resources/schemas/jaxrs.xsd             | 1 +
 4 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/a20b5efb/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/JAXRSServerFactoryBeanDefinitionParser.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/JAXRSServerFactoryBeanDefinitionParser.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/JAXRSServerFactoryBeanDefinitionParser.java
index 780e910..a6ede2b 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/JAXRSServerFactoryBeanDefinitionParser.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/blueprint/JAXRSServerFactoryBeanDefinitionParser.java
@@ -73,6 +73,8 @@ public class JAXRSServerFactoryBeanDefinitionParser extends SimpleBPBeanDefiniti
         } else if ("serviceName".equals(name)) {
             QName q = parseQName(e, val);
             bean.addProperty(name, createValue(context, q));
+        } else if ("publish".equals(name)) {
+            mapToProperty(bean, "start", val, context);
         } else {
             mapToProperty(bean, name, val, context);
         }

http://git-wip-us.apache.org/repos/asf/cxf/blob/a20b5efb/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/JAXRSServerFactoryBeanDefinitionParser.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/JAXRSServerFactoryBeanDefinitionParser.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/JAXRSServerFactoryBeanDefinitionParser.java
index ffdbf45..ce7efea 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/JAXRSServerFactoryBeanDefinitionParser.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/spring/JAXRSServerFactoryBeanDefinitionParser.java
@@ -81,6 +81,8 @@ public class JAXRSServerFactoryBeanDefinitionParser extends AbstractBeanDefiniti
             bean.addPropertyValue("basePackages", ClasspathScanner.parsePackages(val));
         } else if ("serviceAnnotation".equals(name)) {
             bean.addPropertyValue("serviceAnnotation", val);
+        } else if ("publish".equals(name)) {
+            mapToProperty(bean, "start", val);
         } else {
             mapToProperty(bean, name, val);
         }

http://git-wip-us.apache.org/repos/asf/cxf/blob/a20b5efb/rt/frontend/jaxrs/src/main/resources/schemas/blueprint/jaxrs.xsd
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/resources/schemas/blueprint/jaxrs.xsd b/rt/frontend/jaxrs/src/main/resources/schemas/blueprint/jaxrs.xsd
index 74bc24f..4e80b8e 100644
--- a/rt/frontend/jaxrs/src/main/resources/schemas/blueprint/jaxrs.xsd
+++ b/rt/frontend/jaxrs/src/main/resources/schemas/blueprint/jaxrs.xsd
@@ -69,6 +69,7 @@
           <xsd:attribute name="serviceName" type="xsd:QName"/>
           <xsd:attribute name="docLocation" type="xsd:string"/>
           <xsd:attribute name="publishedEndpointUrl" type="xsd:string"/>
+          <xsd:attribute name="publish" type="xsd:boolean"/>
         </xsd:extension>
       </xsd:complexContent>
     </xsd:complexType>

http://git-wip-us.apache.org/repos/asf/cxf/blob/a20b5efb/rt/frontend/jaxrs/src/main/resources/schemas/jaxrs.xsd
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/resources/schemas/jaxrs.xsd b/rt/frontend/jaxrs/src/main/resources/schemas/jaxrs.xsd
index ef408ad..8c88b82 100644
--- a/rt/frontend/jaxrs/src/main/resources/schemas/jaxrs.xsd
+++ b/rt/frontend/jaxrs/src/main/resources/schemas/jaxrs.xsd
@@ -70,6 +70,7 @@
           <xsd:attribute name="publishedEndpointUrl" type="xsd:string"/>
           <xsd:attribute name="basePackages" type="xsd:string"/>
           <xsd:attribute name="serviceAnnotation" type="xsd:string"/>
+          <xsd:attribute name="publish" type="xsd:boolean"/>
         </xsd:extension>
       </xsd:complexContent>
     </xsd:complexType>


Mime
View raw message