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>
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.