org.apache.myfaces.shared.el
Class SimpleActionMethodBinding
java.lang.Object
javax.faces.el.MethodBinding
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
SimpleActionMethodBinding
public SimpleActionMethodBinding(String outcome)
SimpleActionMethodBinding
public SimpleActionMethodBinding()
- Empty constructor, so that new instances can be created when restoring state.
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 © 2012 The Apache Software Foundation. All Rights Reserved.