cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r669505 - in /cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc: ColocOutInterceptor.java feature/ColocFeature.java
Date Thu, 19 Jun 2008 15:25:30 GMT
Author: dkulp
Date: Thu Jun 19 08:25:29 2008
New Revision: 669505

URL: http://svn.apache.org/viewvc?rev=669505&view=rev
Log:
Coloc interceptor has instance state and thus cannot be static

Modified:
    cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/ColocOutInterceptor.java
    cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/feature/ColocFeature.java

Modified: cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/ColocOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/ColocOutInterceptor.java?rev=669505&r1=669504&r2=669505&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/ColocOutInterceptor.java
(original)
+++ cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/ColocOutInterceptor.java
Thu Jun 19 08:25:29 2008
@@ -59,6 +59,10 @@
     public ColocOutInterceptor() {
         super(Phase.POST_LOGICAL);
     }
+    public ColocOutInterceptor(Bus b) {
+        super(Phase.POST_LOGICAL);
+        bus = b;
+    }
 
     public void setBus(Bus bus) {
         this.bus = bus; 

Modified: cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/feature/ColocFeature.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/feature/ColocFeature.java?rev=669505&r1=669504&r2=669505&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/feature/ColocFeature.java
(original)
+++ cxf/trunk/rt/bindings/coloc/src/main/java/org/apache/cxf/binding/coloc/feature/ColocFeature.java
Thu Jun 19 08:25:29 2008
@@ -28,8 +28,6 @@
 import org.apache.cxf.interceptor.InterceptorProvider;
 
 public class ColocFeature extends AbstractFeature {
-    private static final ColocOutInterceptor COLOC_OUT = new ColocOutInterceptor();
-    private static final ColocInInterceptor COLOC_IN = new ColocInInterceptor();
 
     @Override
     public void initialize(Client client, Bus bus) {
@@ -41,8 +39,7 @@
     
     @Override
     protected void initializeProvider(InterceptorProvider provider, Bus bus) {
-        COLOC_OUT.setBus(bus);
-        provider.getInInterceptors().add(COLOC_IN);
-        provider.getOutInterceptors().add(COLOC_OUT);
+        provider.getInInterceptors().add(new ColocInInterceptor());
+        provider.getOutInterceptors().add(new ColocOutInterceptor(bus));
     }
 }



Mime
View raw message