Package com.sun.faces.facelets.el
Class LegacyMethodBinding
java.lang.Object
jakarta.faces.el.MethodBinding
com.sun.faces.facelets.el.LegacyMethodBinding
- All Implemented Interfaces:
Serializable
@Deprecated public final class LegacyMethodBinding extends MethodBinding implements Serializable
Deprecated.
For legacy ActionSources
- Version:
- $Id$
- Author:
- Jacob Hookom
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description LegacyMethodBinding(jakarta.el.MethodExpression m)
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.Class
getType(FacesContext context)
Deprecated.Return the Java class representing the return type from the method identified by this method binding expression.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
-
LegacyMethodBinding
public LegacyMethodBinding(jakarta.el.MethodExpression m)Deprecated.
-
-
Method Details
-
getType
Deprecated.Description copied from class:MethodBinding
Return the Java class representing the return type from the method identified by this method binding expression.
- Specified by:
getType
in classMethodBinding
- Parameters:
context
-FacesContext
for the current request- Returns:
- the type of the return value
- Throws:
MethodNotFoundException
- if no suitable method can be found
-
invoke
public Object invoke(FacesContext context, Object[] params) throws EvaluationException, MethodNotFoundExceptionDeprecated.Description copied from class:MethodBinding
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
.- Specified by:
invoke
in classMethodBinding
- 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 found
-
getExpressionString
Deprecated.Description copied from class:MethodBinding
Return the (possibly
null
) expression String, with leading and trailing delimiters, from which thisMethodBinding
was built. The default implementation returnsnull
.- Overrides:
getExpressionString
in classMethodBinding
- Returns:
- the expression string
-