001 package railo.runtime.cache.eh; 002 003 import java.io.Serializable; 004 005 import net.sf.ehcache.CacheException; 006 import net.sf.ehcache.Ehcache; 007 import net.sf.ehcache.Element; 008 import net.sf.ehcache.event.CacheEventListener; 009 import railo.aprint; 010 011 public class DummyCacheEventListener implements CacheEventListener, Serializable { 012 013 private static final long serialVersionUID = 5194911259476386528L; 014 015 016 017 public void notifyElementExpired(Ehcache cache, Element el) { 018 aprint.o("expired:"+el.getKey()); 019 } 020 021 public void notifyElementRemoved(Ehcache cache, Element el)throws CacheException { 022 023 aprint.o("removed:"+el.getKey()); 024 } 025 026 027 public void dispose() { 028 // TODO Auto-generated method stub 029 030 aprint.o("dispose:"); 031 } 032 033 public void notifyElementEvicted(Ehcache arg0, Element el) { 034 // TODO Auto-generated method stub 035 036 aprint.o("Evicted:"+el.getKey()); 037 } 038 039 public void notifyElementPut(Ehcache arg0, Element el) 040 throws CacheException { 041 // TODO Auto-generated method stub 042 aprint.o("put:"+el.getKey()); 043 044 } 045 046 public void notifyElementUpdated(Ehcache arg0, Element el) 047 throws CacheException { 048 // TODO Auto-generated method stub 049 aprint.o("updated:"+el.getKey()); 050 051 } 052 053 public void notifyRemoveAll(Ehcache arg0) { 054 // TODO Auto-generated method stub 055 aprint.o("removeAll:"); 056 057 } 058 059 060 061 @Override 062 public Object clone(){ 063 return new DummyCacheEventListener(); 064 } 065 066 }