Class CachingObjectCreator<T>
- java.lang.Object
- 
- org.apache.tapestry5.commons.internal.util.LockSupport
- 
- org.apache.tapestry5.ioc.internal.services.CachingObjectCreator<T>
 
 
- 
- All Implemented Interfaces:
- ObjectCreator<T>
 
 public class CachingObjectCreator<T> extends LockSupport implements ObjectCreator<T> AnObjectCreatorthat delegates to anotherObjectCreatorand caches the result.
- 
- 
Constructor SummaryConstructors Constructor Description CachingObjectCreator(ObjectCreator<T> delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TcreateObject()Create and return the object.- 
Methods inherited from class org.apache.tapestry5.commons.internal.util.LockSupportacquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
 
- 
 
- 
- 
- 
Constructor Detail- 
CachingObjectCreatorpublic CachingObjectCreator(ObjectCreator<T> delegate) 
 
- 
 - 
Method Detail- 
createObjectpublic T createObject() Description copied from interface:ObjectCreatorCreate and return the object. In some limited circumstances, the implementation may cache the result, returning the same object for repeated calls.- Specified by:
- createObjectin interface- ObjectCreator<T>
 
 
- 
 
-