|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
org.apache.myfaces.trinidad.util.ref.StrongPseudoReference<T>
public final class StrongPseudoReference<T>
Implementation of PseudoReferences holding a strong reference to the referent.
| Method Summary | ||
|---|---|---|
void |
clear()Clears this reference object. |
|
boolean |
enqueue()Adds this reference object to the queue with which it is registered, if any. |
|
T |
get()Returns this reference object's referent. |
|
boolean |
isEnqueued()Tells whether or not this reference object has been enqueued, either by the program or by the garbage collector. |
|
static
|
newStrongPseudoReference(S referent)Returns a new StrongPseudoReference with a strong reference to the referent; |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <S> StrongPseudoReference<S> newStrongPseudoReference(S referent)
referent -public T get()
null.get in interface PseudoReference<T>null if this reference object has been clearedpublic void clear()
This method is invoked only by Java code; when the garbage collector clears references it does so directly, without invoking this method.
clear in interface PseudoReference<T>public boolean isEnqueued()
false.isEnqueued in interface PseudoReference<T>true if and only if this reference object has been enqueuedpublic boolean enqueue()
This method is invoked only by Java code; when the garbage collector enqueues references it does so directly, without invoking this method.
enqueue in interface PseudoReference<T>true if this reference object was successfully enqueued; false if it was already enqueued or if it was not registered with a queue when it was created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.