You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by ru...@apache.org on 2007/02/06 06:41:29 UTC

svn commit: r503996 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/ProxyServiceFactory.java

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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org