jconch.cache
Class GroovyCacheMap

java.lang.Object
  extended by jconch.cache.CacheMap<java.lang.Object,java.lang.Object>
      extended by jconch.cache.ObjectCacheMap
          extended by jconch.cache.GroovyCacheMap
All Implemented Interfaces:
java.util.Map<java.lang.Object,java.lang.Object>

public class GroovyCacheMap
extends ObjectCacheMap

Creates CacheMap based on a Groovy closure. The closure which is provided will be called with the key as the argument and be expected to produce the value.

Author:
Robert

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
GroovyCacheMap(groovy.lang.Closure converter)
           
GroovyCacheMap(groovy.lang.Closure converter, SyncLogEqLock<java.lang.Object> lockFactory)
           
 
Method Summary
 
Methods inherited from class jconch.cache.CacheMap
asTransformer, clear, containsKey, containsValue, entrySet, equals, get, getTransformer, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyCacheMap

public GroovyCacheMap(groovy.lang.Closure converter,
                      SyncLogEqLock<java.lang.Object> lockFactory)

GroovyCacheMap

public GroovyCacheMap(groovy.lang.Closure converter)