org.apache.myfaces.trinidad.util.ref

## Class PseudoReferenceFactory<T>

- java.lang.Object
- - org.apache.myfaces.trinidad.util.ref.PseudoReferenceFactory<T>

- Direct Known Subclasses:
    SoftPseudoReferenceFactory, StrongPseudoReferenceFactory

      public abstract class PseudoReferenceFactory<T>
      extends Object

  Class for creating PseudoReference to Objects.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PseudoReferenceFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract PseudoReference<T>` | `create(T referent, ReferenceQueue<? super T> queue)` Creates and returns a PseudoReference to the referent

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PseudoReferenceFactory

          public PseudoReferenceFactory()

  - ### Method Detail

    - #### create

          public abstract PseudoReference<T> create(T referent,
                                  ReferenceQueue<? super T> queue)

      Creates and returns a PseudoReference to the referent
      Parameters:
        `referent` -
        `queue` - Optional attribute specifying the ReferenceQueue to use for the created PseudoReference. If the PseudoReference doesn't support ReferenceQueues, this attribute will be ignored
      Returns:
        the created PseudoReference

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