JSF-Spring

de.mindmatters.faces.el
Class ConstantMethodBinding

java.lang.Object
  extended by javax.faces.el.MethodBinding
      extended by de.mindmatters.faces.el.ConstantMethodBinding
All Implemented Interfaces:
StateHolder

public final class ConstantMethodBinding
extends MethodBinding
implements StateHolder

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

Author:
Andreas Kuhrwahl

Constructor Summary
ConstantMethodBinding()
          Default constructor.
ConstantMethodBinding(java.lang.String action)
          Creates an method binding that takes a fixed outcome string action.
 
Method Summary
 java.lang.Class getType(FacesContext context)
          
 java.lang.Object invoke(FacesContext context, java.lang.Object[] params)
          
 boolean isTransient()
          
 void restoreState(FacesContext context, java.lang.Object state)
          
 java.lang.Object saveState(FacesContext context)
          
 void setTransient(boolean newTransientValue)
          
 
Methods inherited from class javax.faces.el.MethodBinding
getExpressionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantMethodBinding

public ConstantMethodBinding()
Default constructor.


ConstantMethodBinding

public ConstantMethodBinding(java.lang.String action)
Creates an method binding that takes a fixed outcome string action.

Parameters:
action - The fixed outcome String
Method Detail

getType

public java.lang.Class getType(FacesContext context)

Specified by:
getType in class MethodBinding

invoke

public java.lang.Object invoke(FacesContext context,
                               java.lang.Object[] params)

Specified by:
invoke in class MethodBinding

isTransient

public boolean isTransient()

Specified by:
isTransient in interface StateHolder

setTransient

public void setTransient(boolean newTransientValue)

Specified by:
setTransient in interface StateHolder

saveState

public java.lang.Object saveState(FacesContext context)

Specified by:
saveState in interface StateHolder

restoreState

public void restoreState(FacesContext context,
                         java.lang.Object state)

Specified by:
restoreState in interface StateHolder

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG