Author: ruwan
Date: Mon Feb  5 21:41:28 2007
New Revision: 503996

URL: http://svn.apache.org/viewvc?view=rev&rev=503996
Log:
code reformat in ProxyServiceFactory

Modified:
    
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java

Modified: 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java
URL: 
http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java?view=diff&rev=503996&r1=503995&r2=503996
==============================================================================
--- 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java
 (original)
+++ 
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java
 Mon Feb  5 21:41:28 2007
@@ -57,18 +57,18 @@
             handleException("The 'name' attribute is required for a Proxy 
service definition");
         } else {
             proxy.setName(name.getAttributeValue());
-            OMAttribute statistics = elem.getAttribute(
+        }
+
+        OMAttribute statistics = elem.getAttribute(
                     new QName(Constants.NULL_NAMESPACE, 
Constants.STATISTICS_ATTRIB_NAME));
-            if (statistics != null) {
-                String statisticsValue = statistics.getAttributeValue();
-                if (statisticsValue != null) {
-                    if (Constants.STATISTICS_ENABLE.equals(statisticsValue)) {
-                        
proxy.setStatisticsEnable(org.apache.synapse.Constants.STATISTICS_ON);
-                    } else if 
(Constants.STATISTICS_DISABLE.equals(statisticsValue)) {
-                        
proxy.setStatisticsEnable(org.apache.synapse.Constants.STATISTICS_OFF);
-                    }
+        if (statistics != null) {
+            String statisticsValue = statistics.getAttributeValue();
+            if (statisticsValue != null) {
+                if (Constants.STATISTICS_ENABLE.equals(statisticsValue)) {
+                    
proxy.setStatisticsEnable(org.apache.synapse.Constants.STATISTICS_ON);
+                } else if 
(Constants.STATISTICS_DISABLE.equals(statisticsValue)) {
+                    
proxy.setStatisticsEnable(org.apache.synapse.Constants.STATISTICS_OFF);
                 }
-
             }
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to