JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.value
Class ReferenceValue<T>

java.lang.Object
  extended by org.jboss.msc.value.ReferenceValue<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
Value<T>

public final class ReferenceValue<T>
extends Object
implements Value<T>

A value which reads a reference.

Author:
David M. Lloyd

Constructor Summary
ReferenceValue(org.jboss.modules.ref.Reference<? extends T,?> reference)
          Construct a new instance.
 
Method Summary
 T getValue()
          Get the actual value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

JBoss Modular Service Kernel API 1.0.0.CR2

Copyright © 2011 JBoss, a division of Red Hat, Inc.