org.jboss.msc.value
Class ClassOfValue<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassOfValue
public ClassOfValue(Value<? extends T> value)
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.
Copyright © 2011 JBoss, a division of Red Hat, Inc.