Re: svn commit: r662435 - in /cocoon/branches/BRANCH_2_1_X: ./ src/blocks/eventcache/java/org/apache/cocoon/caching/impl/ src/blocks/eventcache/java/org/apache/cocoon/samples/ src/java/org/apache/coco

2008-06-06 Thread Andrew Savory
Hi,

2008/6/6 Antonio Gallardo [EMAIL PROTECTED]:

 I am glad to see you back! Please see below:


Thanks ;-)


 The above constructor is since java 1.5. Would you change the code to run
 with java 1.4? Many thanks in advance. :)


Ooops ... my bad. Working on it now ...


Andrew.
--
[EMAIL PROTECTED] / [EMAIL PROTECTED]
http://www.andrewsavory.com/


Re: svn commit: r662435 - in /cocoon/branches/BRANCH_2_1_X: ./ src/blocks/eventcache/java/org/apache/cocoon/caching/impl/ src/blocks/eventcache/java/org/apache/cocoon/samples/ src/java/org/apache/coco

2008-06-05 Thread Antonio Gallardo

Hi Andrew,

I am glad to see you back! Please see below:


[EMAIL PROTECTED] escribió:

Author: asavory
Date: Mon Jun  2 06:51:32 2008
New Revision: 662435

URL: http://svn.apache.org/viewvc?rev=662435view=rev
Log:
COCOON-2152 apply fix from Ellis Pritchard; make samples work again


  



Modified: 
cocoon/branches/BRANCH_2_1_X/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/EventAwareCacheImpl.java
URL: 
http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/EventAwareCacheImpl.java?rev=662435r1=662434r2=662435view=diff
==
--- 
cocoon/branches/BRANCH_2_1_X/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/EventAwareCacheImpl.java
 (original)
+++ 
cocoon/branches/BRANCH_2_1_X/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/EventAwareCacheImpl.java
 Mon Jun  2 06:51:32 2008
@@ -34,72 +39,83 @@
 
 /**
  * This implementation holds all mappings between Events and PipelineCacheKeys 
- * in two MultiHashMap to facilitate efficient lookup by either as Key.

+ * in two MultiValueMaps to facilitate efficient lookup by either as Key.
  * 
- * @author Geoff Howard ([EMAIL PROTECTED])

  * @version $Id$
  */
-public class EventAwareCacheImpl extends CacheImpl implements Initializable,
-  EventAware {
-
+public class EventAwareCacheImpl

+extends CacheImpl
+implements Initializable, Startable, EventAware {
+
 private ServiceManager m_manager;
 
-	private EventRegistry m_eventRegistry;

+private EventRegistry m_eventRegistry;
+
+// clean-up thread
+private static final Timer timer = new Timer(event-cache-checker,true);
  


The above constructor is since java 1.5. Would you change the code to 
run with java 1.4? Many thanks in advance. :)


Best Regards,

Antonio Gallardo.