Author: slaws
Date: Fri Feb 25 10:19:00 2011
New Revision: 1074465

URL: http://svn.apache.org/viewvc?rev=1074465&view=rev
Log:
Move the binding/policy configuration step to after the Axis config context has 
been created. 

Modified:
    
tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java?rev=1074465&r1=1074464&r2=1074465&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java
 Fri Feb 25 10:19:00 2011
@@ -120,11 +120,7 @@ public class Axis2ReferenceBindingProvid
                             PolicyHelper.isIntentRequired(wsBinding, 
Constants.CONFIDENTIALITY_INTENT) ||
                             PolicyHelper.isIntentRequired(wsBinding, 
Constants.INTEGRITY_INTENT);          
 
-        // Apply the configuration from any other policies
-        
-        for (PolicyProvider pp : this.endpointReference.getPolicyProviders()) {
-            pp.configureBinding(this);
-        }
+        // Validate the configuration for provided policies
         
         // check the WSDL style as we currently only support some of them
         if (wsBinding.isRpcEncoded()){
@@ -169,6 +165,12 @@ public class Axis2ReferenceBindingProvid
     public void start() {
         configContext = 
Axis2EngineIntegration.getAxisConfigurationContext(extensionPoints.getServiceDiscovery());
         
+        // Apply the configuration from any other policies
+        
+        for (PolicyProvider pp : this.endpointReference.getPolicyProviders()) {
+            pp.configureBinding(this);
+        }
+        
         try {
             Definition definition = wsBinding.getGeneratedWSDLDocument();
             QName serviceQName = wsBinding.getService().getQName();


Reply via email to