cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r511899 - /incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainBuilder.java
Date Mon, 26 Feb 2007 17:04:42 GMT
Author: dkulp
Date: Mon Feb 26 09:04:38 2007
New Revision: 511899

URL: http://svn.apache.org/viewvc?view=rev&rev=511899
Log:
Add back in some methods used to init handlers outside our code

Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainBuilder.java

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainBuilder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainBuilder.java?view=diff&rev=511899&r1=511898&r2=511899
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainBuilder.java
(original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/HandlerChainBuilder.java
Mon Feb 26 09:04:38 2007
@@ -48,6 +48,7 @@
     private static final ResourceBundle BUNDLE = LOG.getResourceBundle();
 
     private Bus bus;
+    private boolean handlerInitEnabled = true;
 
     public HandlerChainBuilder(Bus aBus) {
         bus = aBus;
@@ -64,6 +65,15 @@
         return sortHandlers(buildHandlerChain(hc, getHandlerClassLoader()));
     }
 
+    // methods used by Geronimo to allow configuring things themselves
+    public void setHandlerInitEnabled(boolean b) {
+        handlerInitEnabled = b;
+    }
+
+    public boolean isHandlerInitEnabled() {
+        return handlerInitEnabled;
+    }
+    
     /**
      * sorts the handlers into correct order. All of the logical handlers first
      * followed by the protocol handlers
@@ -128,6 +138,9 @@
     } 
     
     private void configureHandler(Handler handler, PortComponentHandlerType h) {
+        if (!handlerInitEnabled) {
+            return;
+        }
 
         if (h.getInitParam().size() == 0) {
             return;



Mime
View raw message