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, upgradeReadLockToWriteLockpublic CachingObjectCreator(ObjectCreator<T> delegate)
public T createObject()
ObjectCreatorcreateObject in interface ObjectCreator<T>5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.