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>
public final class MethodValue<T>
- extends Object
- implements Value<T>
A value which is produced by invoking a method.
- Author:
- David M. Lloyd
Method Summary |
T |
getValue()
Get the actual value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodValue
public MethodValue(Value<Method> methodValue,
Value<?> targetValue,
List<? extends Value<?>> parameters)
- 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
getValue
public T getValue()
throws IllegalStateException
- Get the actual value.
- Specified by:
getValue
in interface Value<T>
- Returns:
- the actual value
- 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.