- 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
.
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/faces/el/MethodBinding.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.