- 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
.
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/faces/el/MethodBinding.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.