Name

MethodBinding

Synopsis

An instance of a subclass of this abstract class represents a dynamic binding to a method, typically created from a method binding expression.

Synopsis

Class name:

javax.faces.el.MethodBinding

Extends:

None

Implements:

None

Constructors

public MethodBinding()

Creates an instance.

Methods

public String getExpressionString()

Returns the method binding expression used to create this instance or null if none.

public abstract Class getType(javax.faces.context.FacesContext context)

Returns the Class representing the return type for the method this instance is bound to or null if void. Throws MethodNotFoundException if the method isn’t found.

public abstract Object invoke(javax.faces.context.FacesContext context, Object[] params)

Invokes the method this instance is bound to and returns its return value. Throws MethodNotFoundException if the method isn’t found or EvaluationException wrapped around an exception thrown by the method.

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.