Package org.jboss.msc.value
Class ClassOfValue<T>
- java.lang.Object
-
- org.jboss.msc.value.ClassOfValue<T>
-
@Deprecated public final class ClassOfValue<T> extends Object implements Value<Class<? extends T>>
Deprecated.UseServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.A value which returns theClass
object of another value.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ClassOfValue(Value<? extends T> value)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Class<? extends T>
getValue()
Deprecated.Get the actual dependency value.
-
-
-
Method Detail
-
getValue
public Class<? extends T> getValue() throws IllegalStateException
Deprecated.Description copied from interface:Value
Get the actual dependency value.- Specified by:
getValue
in interfaceValue<T>
- Returns:
- the
Class
of the value, ornull
if value.getValue() isnull
. - Throws:
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.
-
-