Class MethodBinding
- Direct Known Subclasses:
LegacyMethodBinding
,MethodBindingMethodExpressionAdapter
@Deprecated public abstract class MethodBinding extends Object
MethodExpression
.
MethodBinding is an object that can be used to call an arbitrary public method, on an instance that
is acquired by evaluatng the leading portion of a method binding expression via a ValueBinding
. An immutable
MethodBinding
for a particular method binding expression can be acquired by calling the
createMethodBinding()
method of the Application
instance for this web
application.
-
Constructor Summary
Constructors Constructor Description MethodBinding()
Deprecated. -
Method Summary
Modifier and Type Method Description String
getExpressionString()
Deprecated.Return the (possiblynull
) expression String, with leading and trailing delimiters, from which thisMethodBinding
was built.abstract Class
getType(FacesContext context)
Deprecated.Return the Java class representing the return type from the method identified by this method binding expression.abstract Object
invoke(FacesContext context, Object[] params)
Deprecated.Return the return value (if any) resulting from a call to the method identified by this method binding expression, passing it the specified parameters, relative to the specifiedFacesContext
.
-
Constructor Details
-
MethodBinding
public MethodBinding()Deprecated.
-
-
Method Details
-
invoke
public abstract Object invoke(FacesContext context, Object[] params) throws EvaluationException, MethodNotFoundExceptionDeprecated.Return the return value (if any) resulting from a call to the method identified by this method binding expression, passing it the specified parameters, relative to the specified
FacesContext
.- Parameters:
context
-FacesContext
for the current requestparams
- Array of parameters to be passed to the called method, ornull
for no parameters- Returns:
- the result of the invocation
- Throws:
EvaluationException
- if an exception is thrown by the called method (the thrown exception must be included as thecause
property of this exception)MethodNotFoundException
- if no suitable method can be foundNullPointerException
- ifcontext
isnull
-
getType
Deprecated.Return the Java class representing the return type from the method identified by this method binding expression.
- Parameters:
context
-FacesContext
for the current request- Returns:
- the type of the return value
- Throws:
MethodNotFoundException
- if no suitable method can be foundNullPointerException
- ifcontext
isnull
-
getExpressionString
Deprecated.Return the (possibly
null
) expression String, with leading and trailing delimiters, from which thisMethodBinding
was built. The default implementation returnsnull
.- Returns:
- the expression string
-