public class CachingObjectCreator<T> extends LockSupport implements ObjectCreator<T>
ObjectCreator
that delegates to another
ObjectCreator
and caches the result.Constructor and Description |
---|
CachingObjectCreator(ObjectCreator<T> delegate) |
Modifier and Type | Method and Description |
---|---|
T |
createObject()
Create and return the object.
|
acquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
public CachingObjectCreator(ObjectCreator<T> delegate)
public T createObject()
ObjectCreator
createObject
in interface ObjectCreator<T>
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.