- java.lang.Object
-
- javax.faces.el.MethodBinding
-
Deprecated.This has been replaced by
MethodExpression
.
public abstract class MethodBinding extends Object
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 immutableMethodBinding
for a particular method binding expression can be acquired by calling thecreateMethodBinding()
method of theApplication
instance for this web application.
-
-
Constructor Summary
Constructors Constructor and Description MethodBinding()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method and 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
.
-
-
-
Method Detail
-
invoke
public abstract Object invoke(FacesContext context, 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
-FacesContext
for the current requestparams
- Array of parameters to be passed to the called method, ornull
for no parameters- 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
public abstract 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
-FacesContext
for the current request- Throws:
MethodNotFoundException
- if no suitable method can be foundNullPointerException
- ifcontext
isnull
-
getExpressionString
public String getExpressionString()
Deprecated.Return the (possibly
null
) expression String, with leading and trailing delimiters, from which thisMethodBinding
was built. The default implementation returnsnull
.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 23:35:08 Cette version de la page est en cache (à la date du 21/08/2025 23:35:08) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 14/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/faces/el/methodbinding.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.