org.spicefactory.cinnamon.reflect.util
Interface Cache.Factory<K,V>

Enclosing class:
Cache<K,V>

public static interface Cache.Factory<K,V>

A Factory is used by cache instances to create objects whenever there is a request for a key for which no instance has been created yet.

Author:
Jens Halm

Method Summary
 V create(K key)
          Creates the corresponding object for the specified key.
 

Method Detail

create

V create(K key)
Creates the corresponding object for the specified key.

Parameters:
key - the key to create a new instance for
Returns:
a new instance, corresponding to the specified key