cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [21/48] cxf git commit: [CXF-6938] Removing the redundant bus property
Date Wed, 29 Jun 2016 22:44:19 GMT
[CXF-6938] Removing the redundant bus property


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

Branch: refs/heads/master-jaxrs-2.1
Commit: 74f0cad5d1a8dcbcc60eb46018bbdfbd0cb9b06a
Parents: 703e40b
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Jun 21 11:08:46 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Jun 21 11:08:46 2016 +0100

----------------------------------------------------------------------
 .../apache/cxf/jaxrs/provider/ProviderFactory.java  | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/74f0cad5/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
index 41f7346..4ee799c 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactory.java
@@ -520,16 +520,12 @@ public abstract class ProviderFactory {
     
     protected void setBusProviders() {
         List<Object> extensions = new LinkedList<Object>(); 
-        final String alreadySetProp = "bus.providers.set." + this.hashCode();
-        if (bus.getProperty(alreadySetProp) == null) {
-            addBusExtension(extensions,
-                            MessageBodyReader.class,
-                            MessageBodyWriter.class,
-                            ExceptionMapper.class);
-            if (!extensions.isEmpty()) {
-                setProviders(true, true, extensions.toArray());
-                bus.setProperty(alreadySetProp, "");
-            }
+        addBusExtension(extensions,
+                        MessageBodyReader.class,
+                        MessageBodyWriter.class,
+                        ExceptionMapper.class);
+        if (!extensions.isEmpty()) {
+            setProviders(true, true, extensions.toArray());
         }
     }
     


Mime
View raw message