org.apache.myfaces.el.convert
Class MethodExpressionToMethodBinding

java.lang.Object
  extended by javax.faces.el.MethodBinding
      extended by org.apache.myfaces.el.convert.MethodExpressionToMethodBinding
All Implemented Interfaces:
StateHolder

public final class MethodExpressionToMethodBinding
extends MethodBinding
implements StateHolder

Converts a MethodExpression to a MethodBinding. See JSF 1.2 spec section 5.8.4 ATTENTION: If you make changes to this class, treat javax.faces.component._MethodExpressionToMethodBinding accordingly.

Author:
Stan Silvert
See Also:
_MethodExpressionToMethodBinding

Constructor Summary
MethodExpressionToMethodBinding()
           
MethodExpressionToMethodBinding(javax.el.MethodExpression methodExpression)
          Creates a new instance of MethodExpressionToMethodBinding
 
Method Summary
 String getExpressionString()
           
 Class getType(FacesContext facesContext)
           
 Object invoke(FacesContext facesContext, Object[] params)
           
 boolean isTransient()
           
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodExpressionToMethodBinding

public MethodExpressionToMethodBinding()

MethodExpressionToMethodBinding

public MethodExpressionToMethodBinding(javax.el.MethodExpression methodExpression)
Creates a new instance of MethodExpressionToMethodBinding

Method Detail

getExpressionString

public String getExpressionString()
Overrides:
getExpressionString in class MethodBinding

getType

public Class getType(FacesContext facesContext)
              throws MethodNotFoundException
Specified by:
getType in class MethodBinding
Throws:
MethodNotFoundException

invoke

public Object invoke(FacesContext facesContext,
                     Object[] params)
              throws EvaluationException,
                     MethodNotFoundException
Specified by:
invoke in class MethodBinding
Throws:
EvaluationException
MethodNotFoundException

restoreState

public void restoreState(FacesContext context,
                         Object state)
Specified by:
restoreState in interface StateHolder

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.