Class Memoizer<K,V>

java.lang.Object
org.faktorips.runtime.caching.Memoizer<K,V>
All Implemented Interfaces:
IComputable<K,V>

public class Memoizer<K,V> extends Object implements IComputable<K,V>
This Memoizer is implemented as suggested by Brian Goetz in Java Concurrency in Practice. It is a thread safe caching mechanism that loads not stored object by calling a IComputable. It is extended by the soft reference mechanism so references could be garbage collected in case of memory needs.
Author:
dirmeier