Quantcast

cxf git commit: Enhanced CDI Extension to support JAX-RS Features (registered as providers) along with Apache CXF Features

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

cxf git commit: Enhanced CDI Extension to support JAX-RS Features (registered as providers) along with Apache CXF Features

reta
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 2f01683b4 -> 9eaf532d7


Enhanced CDI Extension to support JAX-RS Features (registered as providers) along with Apache CXF Features


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

Branch: refs/heads/3.1.x-fixes
Commit: 9eaf532d77d2f78e68b816012b9ef95197b93174
Parents: 2f01683
Author: reta <[hidden email]>
Authored: Tue Jan 31 21:43:00 2017 -0500
Committer: reta <[hidden email]>
Committed: Mon May 15 12:23:57 2017 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/cdi/JAXRSCdiResourceExtension.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/9eaf532d/integration/cdi/src/main/java/org/apache/cxf/cdi/JAXRSCdiResourceExtension.java
----------------------------------------------------------------------
diff --git a/integration/cdi/src/main/java/org/apache/cxf/cdi/JAXRSCdiResourceExtension.java b/integration/cdi/src/main/java/org/apache/cxf/cdi/JAXRSCdiResourceExtension.java
index 6df4df0..42bbae1 100644
--- a/integration/cdi/src/main/java/org/apache/cxf/cdi/JAXRSCdiResourceExtension.java
+++ b/integration/cdi/src/main/java/org/apache/cxf/cdi/JAXRSCdiResourceExtension.java
@@ -109,6 +109,8 @@ public class JAXRSCdiResourceExtension implements Extension {
             serviceBeans.add(event.getBean());
         } else if (event.getAnnotated().isAnnotationPresent(Provider.class)) {
             providerBeans.add(event.getBean());
+        } else if (event.getBean().getTypes().contains(javax.ws.rs.core.Feature.class)) {
+            providerBeans.add((Bean< ? extends Feature >)event.getBean());
         } else if (event.getBean().getTypes().contains(Feature.class)) {
             featureBeans.add((Bean< ? extends Feature >)event.getBean());
         } else if (CdiBusBean.CXF.equals(event.getBean().getName())

Loading...