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:45:40 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes d83590f5f -> cbe1a37f3


[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/cbe1a37f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/cbe1a37f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/cbe1a37f

Branch: refs/heads/3.0.x-fixes
Commit: cbe1a37f306f1aeabf45eff1a4c93673b78b2bc3
Parents: d83590f
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:45: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/cbe1a37f/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/cbe1a37f/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 b9a1ae3..4f56702 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/cbe1a37f/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/cbe1a37f/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