public abstract class PersistentReference extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
REFERENCE_SOFT |
static int |
REFERENCE_WEAK |
| Constructor and Description |
|---|
PersistentReference(Class clazz,
Object referencedObject,
int referenceType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildReference(Object obj)
This method should be called from a synchronized block
|
Object |
get() |
Class |
getMappedClass() |
protected Object |
internalGet()
Checks the reference but doesn't perform rebuild if empty
|
abstract Object |
rebuildReference() |
public static final int REFERENCE_WEAK
public static final int REFERENCE_SOFT
public PersistentReference(Class clazz, Object referencedObject, int referenceType)
clazz - The clazz being used on this object (where we will do reflection operations)referencedObject - The reflection object being usedreferenceType - if REFERENCE_WEAK will use a WeakReference, and if REFERENCE_SOFT will use a SoftReference for referencedObjectCopyright © 2011-2012 Ovea. All Rights Reserved.