Seulement dans JBossCommon_1_2_1_GA_CP01: build.log
Seulement dans JBossCommon_1_2_1_GA_CP01: output
diff -ru JBossCommon_1_2_1_GA_CP01_bare/src/main/org/jboss/util/TimedCachePolicy.java JBossCommon_1_2_1_GA_CP01/src/main/org/jboss/util/TimedCachePolicy.java
--- JBossCommon_1_2_1_GA_CP01_bare/src/main/org/jboss/util/TimedCachePolicy.java 2010-06-29 22:30:57.000000000 +0200
+++ JBossCommon_1_2_1_GA_CP01/src/main/org/jboss/util/TimedCachePolicy.java 2010-06-29 23:26:19.000000000 +0200
@@ -29,6 +29,7 @@
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
+import org.jboss.logging.Logger;
/** An implementation of a timed cache. This is a cache whose entries have a
limited lifetime with the ability to refresh their lifetime. The entries
@@ -47,6 +48,9 @@
extends TimerTask /* A legacy base class that is no longer used as this level */
implements CachePolicy
{
+
+ private static Logger log = Logger.getLogger(TimedCachePolicy.class);
+
/** The interface that cache entries support.
*/
public static interface TimedEntry
@@ -333,7 +337,32 @@
*/
public void run()
{
- now = System.currentTimeMillis();
+ now = System.currentTimeMillis();
+ synchronized (entryMap) {
+ Iterator iter = entryMap.entrySet().iterator();
+ List removeentries = new ArrayList();
+ while (iter.hasNext()) {
+ Map.Entry entry = (Map.Entry) iter.next();
+ TimedEntry value = (TimedEntry) entry.getValue();
+
+ if (value.isCurrent(now) == false) {
+ if (log.isDebugEnabled()) {
+ log.debug("destroying object: " + entry.getKey() + ", "
+ + value);
+ }
+ value.destroy();
+ removeentries.add(entry.getKey());
+ }
+ }
+ iter = removeentries.iterator();
+ while (iter.hasNext()) {
+ Object object = iter.next();
+ if (log.isDebugEnabled()) {
+ log.debug("removing object from map: " + object);
+ }
+ entryMap.remove(object);
+ }
+ }
}
/** Get the cache time.
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: apache-httpclient
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: apache-jaxme
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: apache-log4j
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: apache-slide
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: apache-xerces
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: jboss
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: libraries.ent
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: licenses
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: oswego-concurrent
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: sun-jaf
Seulement dans JBossCommon_1_2_1_GA_CP01/thirdparty: wutka-dtdparser
diff -ru JBossCommon_1_2_1_GA_CP01_bare/tools/etc/buildmagic/buildmagic.ent JBossCommon_1_2_1_GA_CP01/tools/etc/buildmagic/buildmagic.ent
--- JBossCommon_1_2_1_GA_CP01_bare/tools/etc/buildmagic/buildmagic.ent 2010-06-29 22:30:58.000000000 +0200
+++ JBossCommon_1_2_1_GA_CP01/tools/etc/buildmagic/buildmagic.ent 2010-06-29 22:43:20.000000000 +0200
@@ -106,7 +106,7 @@
-
+