001package com.identityworksllc.iiq.common.cache;
002
003/**
004 * This interface represents a factory for objects of type T
005 * @param <T> The type of the object to generate
006 */
007public interface CacheGenerator<T> {
008        
009        /**
010         * Gets a value (new or existing) that should be associated with the given key.
011         * @param key The key for which to retrieve a value.
012         * @return The resulting value
013         */
014        T getValue(Object key);
015        
016}