com.googlecode.ehcache.annotations.resolver
Class ThreadLocalCacheEntryFactory

java.lang.Object
  extended by com.googlecode.ehcache.annotations.resolver.ThreadLocalCacheEntryFactory
All Implemented Interfaces:
net.sf.ehcache.constructs.blocking.CacheEntryFactory
Direct Known Subclasses:
RefreshingCacheEntryFactory

public class ThreadLocalCacheEntryFactory
extends java.lang.Object
implements net.sf.ehcache.constructs.blocking.CacheEntryFactory

EhCache entry factory that uses a ThreadLocal to pass a MethodInvocation into the factory for object creation.


Field Summary
protected  java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> entryFactory
           
 
Constructor Summary
ThreadLocalCacheEntryFactory()
           
 
Method Summary
 java.lang.Object createEntry(java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entryFactory

protected final java.lang.ThreadLocal<org.aopalliance.intercept.MethodInvocation> entryFactory
Constructor Detail

ThreadLocalCacheEntryFactory

public ThreadLocalCacheEntryFactory()
Method Detail

createEntry

public java.lang.Object createEntry(java.lang.Object key)
                             throws java.lang.Exception
Specified by:
createEntry in interface net.sf.ehcache.constructs.blocking.CacheEntryFactory
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.