Interface CacheEntryFactory
-
- All Known Subinterfaces:
UpdatingCacheEntryFactory
public interface CacheEntryFactoryCreates objects to populate the cache.- Version:
- $Id$
- Author:
- Greg Luck
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectcreateEntry(java.lang.Object key)Creates the cacheEntry for the given cache key.
-
-
-
Method Detail
-
createEntry
java.lang.Object createEntry(java.lang.Object key) throws java.lang.ExceptionCreates the cacheEntry for the given cache key. ehcache requires cache entries to be serializable. Note that this method must be thread safe.- Returns:
- The entry, or null if it does not exist.
- Throws:
java.lang.Exception- On failure creating the object.
-
-