Esri Geoportal Server
1.0

com.esri.gpt.framework.jsf.components
Class SimpleMethodBinding

java.lang.Object
  extended by javax.faces.el.MethodBinding
      extended by com.esri.gpt.framework.jsf.components.SimpleMethodBinding
All Implemented Interfaces:
StateHolder

public class SimpleMethodBinding
extends MethodBinding
implements StateHolder

The Class SimpleMethodBinding. Can be used instead of method binding for actions when we need to return just a plain String.


Constructor Summary
SimpleMethodBinding(String returnString)
          Instantiates a new simple method binding.
 
Method Summary
 Class getType(FacesContext arg0)
          Returns String.class
 Object invoke(FacesContext arg0, Object[] arg1)
          Returns the returnString.
 boolean isTransient()
           
 void restoreState(FacesContext facescontext, Object obj)
          Restoring State
 Object saveState(FacesContext facescontext)
          Save state.
 void setTransient(boolean flag)
          Setting transient
 
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

SimpleMethodBinding

public SimpleMethodBinding(String returnString)
Instantiates a new simple method binding.

Parameters:
returnString - the return string
Method Detail

getType

public Class getType(FacesContext arg0)
              throws MethodNotFoundException
Returns String.class

Specified by:
getType in class MethodBinding
Parameters:
arg0 - the arg0
Returns:
String.class
Throws:
MethodNotFoundException - the method not found exception

invoke

public Object invoke(FacesContext arg0,
                     Object[] arg1)
              throws EvaluationException,
                     MethodNotFoundException
Returns the returnString.

Specified by:
invoke in class MethodBinding
Parameters:
arg0 - the arg0
arg1 - the arg1
Returns:
the return string
Throws:
EvaluationException - the evaluation exception
MethodNotFoundException - the method not found exception

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder
Returns:
whether is transient

restoreState

public void restoreState(FacesContext facescontext,
                         Object obj)
Restoring State

Specified by:
restoreState in interface StateHolder
Parameters:
facescontext -
obj -

saveState

public Object saveState(FacesContext facescontext)
Save state.

Specified by:
saveState in interface StateHolder
Parameters:
facescontext - the facescontext
Returns:
the object

setTransient

public void setTransient(boolean flag)
Setting transient

Specified by:
setTransient in interface StateHolder
Parameters:
flag -

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.