Package org.jboss.msc.value
Class FieldValue<T>
- java.lang.Object
-
- org.jboss.msc.value.FieldValue<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Value<T>
@Deprecated public final class FieldValue<T> extends Object implements Value<T>
Deprecated.UseServiceBuilder.requires(org.jboss.msc.service.ServiceName)
method instead. This class will be removed in a future release.A value which reads a field of an object.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description FieldValue(Field field, Value<?> targetValue)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
getValue()
Deprecated.Get the actual dependency value.
-
-
-
Method Detail
-
getValue
public T getValue() throws IllegalStateException
Deprecated.Get the actual dependency value.- Specified by:
getValue
in interfaceValue<T>
- Returns:
- the actual dependency value
- Throws:
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.
-
-