cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/4] cxf git commit: annotations should have Javadoc, copied documentation from https://cwiki.apache.org/confluence/display/CXF20DOC/JAXRSClientSpringBoot
Date Mon, 26 Jun 2017 18:10:01 GMT
annotations should have Javadoc, copied documentation from https://cwiki.apache.org/confluence/display/CXF20DOC/JAXRSClientSpringBoot


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

Branch: refs/heads/3.1.x-fixes
Commit: 6819cc59fe842ce3cef4e148c0f6f94db6931c4a
Parents: bdb04ca
Author: Dennis Kieselhorst <deki@apache.org>
Authored: Sun Jun 25 15:00:22 2017 +0200
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Jun 26 13:19:27 2017 -0400

----------------------------------------------------------------------
 .../cxf/jaxrs/client/spring/EnableJaxRsProxyClient.java     | 9 +++++++++
 .../cxf/jaxrs/client/spring/EnableJaxRsWebClient.java       | 7 +++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/6819cc59/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsProxyClient.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsProxyClient.java
b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsProxyClient.java
index ed8afee..b346e2f 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsProxyClient.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsProxyClient.java
@@ -25,6 +25,15 @@ import java.lang.annotation.Target;
 
 import org.springframework.context.annotation.Import;
 
+/**
+ * Allows autowiring of proxy clients
+ *
+ * It creates a proxy from the auto-discovered service class interface.
+ * JAX-RS providers (annotated with @Provider) and marked as Spring Components are added
to proxy clients.
+ * The providers which are not marked as Spring Components can also be optionally auto-discovered.
+ * Proxy can also be configured with optional headers such as Accept and Content-Type
+ * (if JAX-RS @Produces and/or @Consumes are missing or need to be overridden) and made thread-safe.
+ */
 @Retention(RetentionPolicy.RUNTIME)
 @Target(ElementType.TYPE)
 @Import(JaxRsProxyClientConfiguration.class)

http://git-wip-us.apache.org/repos/asf/cxf/blob/6819cc59/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsWebClient.java
----------------------------------------------------------------------
diff --git a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsWebClient.java
b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsWebClient.java
index be5a47f..cf1ad93 100644
--- a/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsWebClient.java
+++ b/rt/rs/client/src/main/java/org/apache/cxf/jaxrs/client/spring/EnableJaxRsWebClient.java
@@ -25,6 +25,13 @@ import java.lang.annotation.Target;
 
 import org.springframework.context.annotation.Import;
 
+/**
+ * Allows autowiring of @{@link org.apache.cxf.jaxrs.client.WebClient}.
+ *
+ * JAX-RS providers (annotated with @Provider) and marked as Spring Components are added
to WebClient.
+ * The providers which are not marked as Spring Components can also be optionally auto-discovered.
+ * WebClient can also be configured with optional headers such as Accept and Content-Type
and made thread-safe.
+ */
 @Retention(RetentionPolicy.RUNTIME)
 @Target(ElementType.TYPE)
 @Import(JaxRsWebClientConfiguration.class)


Mime
View raw message