Package org.codehaus.groovy.util
Class LazyReference<T>
- java.lang.Object
- 
- java.util.concurrent.locks.AbstractOwnableSynchronizer
- 
- java.util.concurrent.locks.AbstractQueuedSynchronizer
- 
- org.codehaus.groovy.util.LockableObject
- 
- org.codehaus.groovy.util.LazyReference<T>
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public abstract class LazyReference<T> extends LockableObject Soft reference with lazy initialization under lock- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizerAbstractQueuedSynchronizer.ConditionObject
 
- 
 - 
Constructor SummaryConstructors Constructor Description LazyReference(ReferenceBundle bundle)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()Tget()abstract TinitValue()StringtoString()- 
Methods inherited from class org.codehaus.groovy.util.LockableObjectisHeldExclusively, lock, tryAcquire, tryRelease, unlock
 - 
Methods inherited from class java.util.concurrent.locks.AbstractQueuedSynchronizeracquire, acquireInterruptibly, acquireShared, acquireSharedInterruptibly, compareAndSetState, getExclusiveQueuedThreads, getFirstQueuedThread, getQueuedThreads, getQueueLength, getSharedQueuedThreads, getState, getWaitingThreads, getWaitQueueLength, hasContended, hasQueuedPredecessors, hasQueuedThreads, hasWaiters, isQueued, owns, release, releaseShared, setState, tryAcquireNanos, tryAcquireShared, tryAcquireSharedNanos, tryReleaseShared
 - 
Methods inherited from class java.util.concurrent.locks.AbstractOwnableSynchronizergetExclusiveOwnerThread, setExclusiveOwnerThread
 
- 
 
- 
- 
- 
Constructor Detail- 
LazyReferencepublic LazyReference(ReferenceBundle bundle) 
 
- 
 - 
Method Detail- 
getpublic T get() 
 - 
clearpublic void clear() 
 - 
initValuepublic abstract T initValue() 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AbstractQueuedSynchronizer
 
 
- 
 
-