Class ReferenceValue<T>

  • Type Parameters:
    T - the value type
    All Implemented Interfaces:
    Value<T>

    public final class ReferenceValue<T>
    extends java.lang.Object
    implements Value<T>
    A value which reads a reference.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.jboss.modules.ref.Reference<? extends T,​?> reference  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceValue​(org.jboss.modules.ref.Reference<? extends T,​?> reference)
      Construct a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getValue()
      Get the actual value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • reference

        private final org.jboss.modules.ref.Reference<? extends T,​?> reference
    • Constructor Detail

      • ReferenceValue

        public ReferenceValue​(org.jboss.modules.ref.Reference<? extends T,​?> reference)
        Construct a new instance.
        Parameters:
        reference - the reference to refer to
    • Method Detail

      • getValue

        public T getValue()
        Get the actual value.
        Specified by:
        getValue in interface Value<T>
        Returns:
        the actual value