org.jboss.msc.value
Class LookupMethodValue
java.lang.Object
org.jboss.msc.value.LookupMethodValue
- All Implemented Interfaces:
- Value<Method>
public final class LookupMethodValue
- extends Object
- implements Value<Method>
A value which looks up a public method by name and parameters from a class.
- Author:
- David M. Lloyd
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookupMethodValue
public LookupMethodValue(Value<Class<?>> target,
String methodName,
List<? extends Value<Class<?>>> parameterTypes)
- Construct a new instance.
- Parameters:
target
- the class in which to look for the methodmethodName
- the name of the methodparameterTypes
- the method parameter types
LookupMethodValue
public LookupMethodValue(Value<Class<?>> target,
String methodName,
int paramCount)
getValue
public Method getValue()
throws IllegalStateException
- Get the actual value.
- Specified by:
getValue
in interface Value<Method>
- Returns:
- the actual value
- Throws:
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.
Copyright © 2010 JBoss, a division of Red Hat, Inc.