Author: indika
Date: Mon Jan 26 02:48:32 2009
New Revision: 29459
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=29459

Log:
minor code refactor

Modified:
   
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/DataSourceInformationRepositoryHelper.java
   
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/JNDIBasedDataSourceRepository.java
   
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationFactory.java
   
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationRepositoryFactory.java

Modified: 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/DataSourceInformationRepositoryHelper.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/DataSourceInformationRepositoryHelper.java?rev=29459&r1=29458&r2=29459&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/DataSourceInformationRepositoryHelper.java
       (original)
+++ 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/DataSourceInformationRepositoryHelper.java
       Mon Jan 26 02:48:32 2009
@@ -35,7 +35,8 @@
 
     private static final Log log = 
LogFactory.getLog(DataSourceInformationRepositoryHelper.class);
 
-    public static void 
initializeDataSourceInformationRepository(AxisConfiguration axisConfiguration, 
Properties properties) {
+    public static void initializeDataSourceInformationRepository(
+            AxisConfiguration axisConfiguration, Properties properties) {
 
         DataSourceInformationRepository repository = 
getDataSourceInformationRepository(axisConfiguration);
         DataSourceInformationRepositoryListener listener = null;
@@ -58,7 +59,9 @@
         }
     }
 
-    public static void 
initializeDataSourceInformationRepository(AxisConfiguration axisConfiguration, 
Properties properties, DataSourceInformationRepositoryListener listener) {
+    public static void initializeDataSourceInformationRepository(
+            AxisConfiguration axisConfiguration,
+            Properties properties, DataSourceInformationRepositoryListener 
listener) {
 
         DataSourceInformationRepository repository =
                 
DataSourceInformationRepositoryFactory.createDataSourceInformationRepository(properties,
 listener);
@@ -72,7 +75,8 @@
         }
     }
 
-    public static DataSourceInformationRepository 
getDataSourceInformationRepository(AxisConfiguration axisConfiguration) {
+    public static DataSourceInformationRepository 
getDataSourceInformationRepository(
+            AxisConfiguration axisConfiguration) {
 
         Parameter parameter = axisConfiguration.getParameter(
                 
DataSourceConfigurationConstants.DATASOURCE_INFORMATION_REPOSITORY);

Modified: 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/JNDIBasedDataSourceRepository.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/JNDIBasedDataSourceRepository.java?rev=29459&r1=29458&r2=29459&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/JNDIBasedDataSourceRepository.java
       (original)
+++ 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/JNDIBasedDataSourceRepository.java
       Mon Jan 26 02:48:32 2009
@@ -432,7 +432,8 @@
             providerUrl = MiscellaneousUtil.getProperty(
                     dsProperties, rootPrefix + 
DataSourceConfigurationConstants.PROP_PROVIDER_URL, null);
             providerPort =
-                    MiscellaneousUtil.getProperty(dsProperties, rootPrefix + 
DataSourceConfigurationConstants.PROP_PROVIDER_PORT,
+                    MiscellaneousUtil.getProperty(dsProperties,
+                            rootPrefix + 
DataSourceConfigurationConstants.PROP_PROVIDER_PORT,
                             
String.valueOf(DataSourceConfigurationConstants.DEFAULT_PROVIDER_PORT));
 
         }

Modified: 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationFactory.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationFactory.java?rev=29459&r1=29458&r2=29459&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationFactory.java
        (original)
+++ 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationFactory.java
        Mon Jan 26 02:48:32 2009
@@ -72,7 +72,8 @@
             handleException(prefix + 
DataSourceConfigurationConstants.PROP_DRIVER_CLS_NAME + " cannot be found.");
         }
 
-        String url = MiscellaneousUtil.getProperty(properties, prefix + 
DataSourceConfigurationConstants.PROP_URL, null);
+        String url = MiscellaneousUtil.getProperty(properties,
+                prefix + DataSourceConfigurationConstants.PROP_URL, null);
         if (url == null) {
             handleException(prefix + DataSourceConfigurationConstants.PROP_URL 
+ " cannot be found.");
         }

Modified: 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationRepositoryFactory.java
URL: 
http://wso2.org/svn/browse/wso2/branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationRepositoryFactory.java?rev=29459&r1=29458&r2=29459&view=diff
==============================================================================
--- 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationRepositoryFactory.java
      (original)
+++ 
branches/synapse/1.2.wso2v1/modules/utils/src/main/java/org/apache/synapse/commons/util/datasource/factory/DataSourceInformationRepositoryFactory.java
      Mon Jan 26 02:48:32 2009
@@ -36,9 +36,11 @@
         return createDataSourceInformationRepository(properties, 
DataSourceRepositoryManager.getInstance());
     }
 
-    public static DataSourceInformationRepository 
createDataSourceInformationRepository(Properties properties, 
DataSourceInformationRepositoryListener listener) {
+    public static DataSourceInformationRepository 
createDataSourceInformationRepository(
+            Properties properties, DataSourceInformationRepositoryListener 
listener) {
 
-        List<DataSourceInformation> sourceInformationList = 
DataSourceInformationListFactory.createDataSourceInformationList(properties);
+        List<DataSourceInformation> sourceInformationList =
+                
DataSourceInformationListFactory.createDataSourceInformationList(properties);
         DataSourceInformationRepository repository = new 
DataSourceInformationRepository();
         repository.setRepositoryListener(listener);
         if (properties != null && !properties.isEmpty()) {

_______________________________________________
Esb-java-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to