org.apache.myfaces.shared.el
Class SimpleActionMethodBinding

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

public class SimpleActionMethodBinding
extends MethodBinding
implements StateHolder

Convenient method binding that does nothing other than returning a fixed outcome String when invoked.

Author:
Manfred Geiler

Constructor Summary
SimpleActionMethodBinding()
          Empty constructor, so that new instances can be created when restoring state.
SimpleActionMethodBinding(String outcome)
           
 
Method Summary
 Class getType(FacesContext facescontext)
           
 Object invoke(FacesContext facescontext, Object[] aobj)
           
 boolean isTransient()
           
 void restoreState(FacesContext facescontext, Object obj)
           
 Object saveState(FacesContext facescontext)
           
 void setTransient(boolean flag)
           
 String toString()
           
 
Methods inherited from class javax.faces.el.MethodBinding
getExpressionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleActionMethodBinding

public SimpleActionMethodBinding(String outcome)

SimpleActionMethodBinding

public SimpleActionMethodBinding()
Empty constructor, so that new instances can be created when restoring state.

Method Detail

invoke

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

getType

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

saveState

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

restoreState

public void restoreState(FacesContext facescontext,
                         Object obj)
Specified by:
restoreState in interface StateHolder

isTransient

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

setTransient

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

toString

public String toString()
Overrides:
toString in class Object


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