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 StringgetExpressionString()Deprecated.Return the (possiblynull) expression String, with leading and trailing delimiters, from which thisMethodBindingwas built.ClassgetType(FacesContext context)Deprecated.Return the Java class representing the return type from the method identified by this method binding expression.Objectinvoke(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:MethodBindingReturn the Java class representing the return type from the method identified by this method binding expression.
- Specified by:
getTypein classMethodBinding- Parameters:
context-FacesContextfor 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:MethodBindingReturn 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:
invokein classMethodBinding- Parameters:
context-FacesContextfor the current requestparams- Array of parameters to be passed to the called method, ornullfor 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 thecauseproperty of this exception)MethodNotFoundException- if no suitable method can be found
-
getExpressionString
Deprecated.Description copied from class:MethodBindingReturn the (possibly
null) expression String, with leading and trailing delimiters, from which thisMethodBindingwas built. The default implementation returnsnull.- Overrides:
getExpressionStringin classMethodBinding- Returns:
- the expression string
-