JBoss Modular Service Kernel API 1.0.0.CR2

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

java.lang.Object
  extended by org.jboss.msc.value.ClassOfValue<T>
All Implemented Interfaces:
Value<Class<? extends T>>

public final class ClassOfValue<T>
extends Object
implements Value<Class<? extends T>>

A value which returns the Class object of another value.

Author:
David M. Lloyd

Constructor Summary
ClassOfValue(Value<? extends T> value)
           
 
Method Summary
 Class<? extends 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

ClassOfValue

public ClassOfValue(Value<? extends T> value)
Method Detail

getValue

public Class<? extends T> getValue()
                            throws IllegalStateException
Description copied from interface: Value
Get the actual value.

Specified by:
getValue in interface Value<Class<? extends T>>
Returns:
the Class of the value, or null if value.getValue() is null.
Throws:
IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.

JBoss Modular Service Kernel API 1.0.0.CR2

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