commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r295021 - /jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/ReloadingListener.java
Date Wed, 05 Oct 2005 08:54:22 GMT
Author: tcurdt
Date: Wed Oct  5 01:54:19 2005
New Revision: 295021

URL: http://svn.apache.org/viewcvs?rev=295021&view=rev
Log:
also support transactional stores


Modified:
    jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/ReloadingListener.java

Modified: jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/ReloadingListener.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/ReloadingListener.java?rev=295021&r1=295020&r2=295021&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/ReloadingListener.java
(original)
+++ jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/ReloadingListener.java
Wed Oct  5 01:54:19 2005
@@ -24,6 +24,7 @@
 import org.apache.commons.jci.ReloadingClassLoader;
 import org.apache.commons.jci.stores.MemoryResourceStore;
 import org.apache.commons.jci.stores.ResourceStore;
+import org.apache.commons.jci.stores.Transactional;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -67,6 +68,10 @@
                 + " deleted:" + deleted.size()
                 + " resources");
         
+        if (store instanceof Transactional) {
+            ((Transactional)store).onStart();
+        }
+        
         if (deleted.size() > 0) {
             for (Iterator it = deleted.iterator(); it.hasNext();) {
                 final File file = (File) it.next();
@@ -109,6 +114,10 @@
                 }
             }
             reload = true;
+        }
+
+        if (store instanceof Transactional) {
+            ((Transactional)store).onStop();
         }
 
         checked(reload);



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message