org.apache.myfaces.trinidad.util
Class TransientHolder<T>

java.lang.Object
  extended by org.apache.myfaces.trinidad.util.TransientHolder<T>
All Implemented Interfaces:
Serializable

public final class TransientHolder<T>
extends Object
implements Serializable

Holds an unserializable value in a transient variable so that unserializable Objects can be safely placed in distributed Sessions without blowing up. Users should expect that getValue() will return null if the class has been serialized/de-serialized

See Also:
Serialized Form

Method Summary
 T getValue()
           
static
<T> TransientHolder<T>
newTransientHolder(T held)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newTransientHolder

public static <T> TransientHolder<T> newTransientHolder(T held)

getValue

public T getValue()


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.