Class MethodBinding
- java.lang.Object
-
- javax.faces.el.MethodBinding
-
public abstract class MethodBinding extends java.lang.ObjectDeprecated.This has been replaced byMethodExpression.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 immutableMethodBindingfor a particular method binding expression can be acquired by calling thecreateMethodBinding()method of theApplicationinstance for this web application.
-
-
Constructor Summary
Constructors Constructor Description MethodBinding()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetExpressionString()Deprecated.Return the (possiblynull) expression String, with leading and trailing delimiters, from which thisMethodBindingwas built.abstract java.lang.ClassgetType(FacesContext context)Deprecated.Return the Java class representing the return type from the method identified by this method binding expression.abstract java.lang.Objectinvoke(FacesContext context, java.lang.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.
-
-
-
Method Detail
-
invoke
public abstract java.lang.Object invoke(FacesContext context, java.lang.Object[] params) throws EvaluationException, MethodNotFoundException
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 specified
FacesContext.- Parameters:
context-FacesContextfor the current requestparams- Array of parameters to be passed to the called method, ornullfor no parameters- 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 foundjava.lang.NullPointerException- ifcontextisnull
-
getType
public abstract java.lang.Class getType(FacesContext context) throws MethodNotFoundException
Deprecated.Return the Java class representing the return type from the method identified by this method binding expression.
- Parameters:
context-FacesContextfor the current request- Throws:
MethodNotFoundException- if no suitable method can be foundjava.lang.NullPointerException- ifcontextisnull
-
getExpressionString
public java.lang.String getExpressionString()
Deprecated.Return the (possibly
null) expression String, with leading and trailing delimiters, from which thisMethodBindingwas built. The default implementation returnsnull.
-
-