org.apache.myfaces.trinidad.util

## Class TransientHolder<T>

- java.lang.Object
- - 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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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-2016 The Apache Software Foundation. All Rights Reserved.