JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT

org.jboss.msc.value
Class LookupDeclaredMethodValue

java.lang.Object
  extended by org.jboss.msc.value.LookupDeclaredMethodValue
All Implemented Interfaces:
Value<Method>

public final class LookupDeclaredMethodValue
extends Object
implements Value<Method>

A value which looks up a possibly non-public method by name and parameters from a class. This may be considerably slower than LookupMethodValue so that class should be used whenever possible.

Author:
David M. Lloyd

Constructor Summary
LookupDeclaredMethodValue(Value<Class<?>> target, String methodName, List<? extends Value<Class<?>>> parameterTypes, AccessControlContext context, boolean makeAccessible)
          Construct a new instance.
 
Method Summary
 Method getValue()
          Get the actual value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupDeclaredMethodValue

public LookupDeclaredMethodValue(Value<Class<?>> target,
                                 String methodName,
                                 List<? extends Value<Class<?>>> parameterTypes,
                                 AccessControlContext context,
                                 boolean makeAccessible)
Construct a new instance.

Parameters:
target - the class in which to look for the method
methodName - the name of the method
parameterTypes - the method parameter types
context - the access control context to use
makeAccessible - true to make the method accessible under the provided access control context
Method Detail

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.

JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT

Copyright © 2010 JBoss, a division of Red Hat, Inc.