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>
An
ObjectCreator
that delegates to another
ObjectCreator
and caches the result.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tapestry5.commons.internal.util.LockSupport
acquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
-
Constructor Details
-
CachingObjectCreator
-
-
Method Details
-
createObject
Description copied from interface:ObjectCreator
Create and return the object. In some limited circumstances, the implementation may cache the result, returning the same object for repeated calls.- Specified by:
createObject
in interfaceObjectCreator<T>
-