axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r603912 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
Date Thu, 13 Dec 2007 12:59:44 GMT
Author: keithc
Date: Thu Dec 13 04:59:41 2007
New Revision: 603912

URL: http://svn.apache.org/viewvc?rev=603912&view=rev
Log:
Removing the private variable directoryToExtensionMappingMap and taking it on demand so that
this will enadle adding new deployers at runtime


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java?rev=603912&r1=603911&r2=603912&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/RepositoryListener.java
Thu Dec 13 04:59:41 2007
@@ -37,14 +37,13 @@
 import java.net.URLDecoder;
 import java.util.ArrayList;
 import java.util.Enumeration;
-import java.util.HashMap;
 import java.util.Iterator;
+import java.util.Map;
 
 public class RepositoryListener implements DeploymentConstants {
     protected static final Log log = LogFactory.getLog(RepositoryListener.class);
 
     protected DeploymentEngine deploymentEngine;
-    private HashMap directoryToExtensionMappingMap;
 
     /** Reference to a WSInfoList */
     protected WSInfoList wsInfoList;
@@ -235,13 +234,13 @@
     public void init() {
         wsInfoList.init();
         checkModules();
-        directoryToExtensionMappingMap = deploymentEngine.getDirectoryToExtensionMappingMap();
         deploymentEngine.doDeploy();
     }
 
     //This will load the files from the directories
     // specified by axis2.xml (As <deployer>)
     private void loadOtherDirectories() {
+        Map directoryToExtensionMappingMap = deploymentEngine.getDirectoryToExtensionMappingMap();
         if (directoryToExtensionMappingMap.size() > 0) {
             Iterator keys = directoryToExtensionMappingMap.keySet().iterator();
             while (keys.hasNext()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message