Package org.jboss.msc.value
Class MethodValue<T>
- java.lang.Object
-
- org.jboss.msc.value.MethodValue<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Value<T>
@Deprecated public final class MethodValue<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 is produced by invoking a method.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description T
getValue()
Deprecated.Get the actual dependency value.
-
-
-
Constructor Detail
-
MethodValue
public MethodValue(Value<Method> methodValue, Value<?> targetValue, List<? extends Value<?>> parameters)
Deprecated.Construct a new instance.- Parameters:
methodValue
- the method to invoketargetValue
- the target object on which to invoke this methodparameters
- the parameters to pass to the method
-
-
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.
-
-