Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.1.3)
E41664-01
 
- 
- Direct Known Subclasses:
 
- OneCallThunk, SoftThunk, WeakThunk
 
public abstract class AbstractReferenceThunk<T>
extends Thunk<T>
A version of Thunk that provide the infratructure to hold
 on to the value with a reference and re-create if it has
 been garbage collected.
 
 
- 
- 
Field Summary
Fields 
| Modifier and Type | 
Field and Description | 
protected T | 
peg  | 
protected java.lang.ref.Reference<T> | 
reference  | 
 
- 
Method Summary
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
 
 
 
- 
- 
Method Detail
- 
get
public T get()
- Overrides:
 
get in class Thunk<T> 
- Returns:
 - The computed value in a single threaded environment this will only create one instance
   not matter how many times it is called.
 
 
- 
getValue
protected T getValue()
- Overrides:
 
getValue in class Thunk<T> 
- Returns:
 - The current value, to be override for WeakThunk implementation
 
 
 
 
 
 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
12c (12.1.3)
E41664-01
 
Copyright © 1997, 2014, Oracle. All rights reserved.