Attemps to resolve and invoke the given
method
on the given
base
object.
If this resolver handles the given (base, method) pair, the propertyResolved
property of the ELContext
object must be set to true
by the resolver, before returning. If this property is not true
after this method is called, the caller should ignore the return value.
A default implementation is provided that returns null so that existing classes that extend ELResolver can continue to function.
@param context The context of this evaluation.
@param base The bean on which to invoke the method
@param method The simple name of the method to invoke.Will be coerced to a
String
.
@param paramTypes An array of Class objects identifying themethod's formal parameter types, in declared order. Use an empty array if the method has no parameters. Can be
null
, in which case the method's formal parameter types are assumed to be unknown.
@param params The parameters to pass to the method, or
null
if no parameters.
@return The result of the method invocation (
null
ifthe method has a
void
return type).
@throws MethodNotFoundException if no suitable method can be found.
@throws ELException if an exception was thrown while performing(base, method) resolution. The thrown exception must be included as the cause property of this exception, if available. If the exception thrown is an
InvocationTargetException
, extract its
cause
and pass it to the
ELException
constructor.
@since EL 2.2