Top Description Fields Constructors Methods
com.sun.faces.facelets.el

public final Class LegacyMethodBinding

extends MethodBinding
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
javax.el.ELException, .MethodExpression, javax.faces.context.FacesContext, javax.faces.el.EvaluationException, .MethodBinding, .MethodNotFoundException, java.io.Serializable

Deprecated

For legacy ActionSources
Author
Jacob Hookom
Version
$Id$

Field Summary

Modifier and TypeField and Description
private final MethodExpression
m

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getExpressionString()

Overrides javax.faces.el.MethodBinding.getExpressionString.

Return the (possibly null) expression String, with leading and trailing delimiters, from which this MethodBinding was built.

public Class<T>
getType(FacesContext
FacesContext for the current request
context
)

Implements abstract javax.faces.el.MethodBinding.getType.

Return the Java class representing the return type from the method identified by this method binding expression.

public Object
invoke(FacesContext
FacesContext for the current request
context
,
Object[]
Array of parameters to be passed to the called method, or null for no parameters
params
)

Implements abstract javax.faces.el.MethodBinding.invoke.

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.

Field Detail

mback to summary
private final MethodExpression m
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

LegacyMethodBindingback to summary
public LegacyMethodBinding(MethodExpression m)

Method Detail

getExpressionStringback to summary
public String getExpressionString()

Overrides javax.faces.el.MethodBinding.getExpressionString.

Doc from javax.faces.el.MethodBinding.getExpressionString.

Return the (possibly null) expression String, with leading and trailing delimiters, from which this MethodBinding was built. The default implementation returns null.

Returns:String

the expression string

Annotations
@Override
getTypeback to summary
public Class<T> getType(FacesContext context) throws MethodNotFoundException

Implements abstract javax.faces.el.MethodBinding.getType.

Doc from javax.faces.el.MethodBinding.getType.

Return the Java class representing the return type from the method identified by this method binding expression.

Parameters
context:FacesContext

FacesContext for the current request

Returns:Class<T>

the type of the return value

Annotations
@Override
Exceptions
MethodNotFoundException:
if no suitable method can be found
invokeback to summary
public Object invoke(FacesContext context, Object[] params) throws EvaluationException, MethodNotFoundException

Implements abstract javax.faces.el.MethodBinding.invoke.

Doc from javax.faces.el.MethodBinding.invoke.

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

FacesContext for the current request

params:Object[]

Array of parameters to be passed to the called method, or null for no parameters

Returns:Object

the result of the invocation

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown by the called method (the thrown exception must be included as the cause property of this exception)
MethodNotFoundException:
if no suitable method can be found