org.apache.shale.test.mock
Class MockMethodBinding

java.lang.Object
  extended by javax.faces.el.MethodBinding
      extended by org.apache.shale.test.mock.MockMethodBinding
All Implemented Interfaces:
javax.faces.component.StateHolder

public class MockMethodBinding
extends javax.faces.el.MethodBinding
implements javax.faces.component.StateHolder

Mock implementation of MethodBinding.

This implementation is subject to the following restrictions:


Constructor Summary
MockMethodBinding()
          Construct a default instance.
MockMethodBinding(javax.faces.application.Application application, String ref, Class[] args)
          Construct a configured instance.
 
Method Summary
 boolean equals(Object otherObj)
          
 String getExpressionString()
          
 Class getType(javax.faces.context.FacesContext context)
          
 int hashCode()
          
 Object invoke(javax.faces.context.FacesContext context, Object[] params)
          
 boolean isTransient()
          
 void restoreState(javax.faces.context.FacesContext context, Object state)
          
 Object saveState(javax.faces.context.FacesContext context)
          
 void setTransient(boolean transientFlag)
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockMethodBinding

public MockMethodBinding()

Construct a default instance.


MockMethodBinding

public MockMethodBinding(javax.faces.application.Application application,
                         String ref,
                         Class[] args)

Construct a configured instance.

Parameters:
application - Application instance for this application
ref - Method binding expression to be parsed
args - Signature of this method
Method Detail

invoke

public Object invoke(javax.faces.context.FacesContext context,
                     Object[] params)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.MethodNotFoundException

Specified by:
invoke in class javax.faces.el.MethodBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.MethodNotFoundException

getType

public Class getType(javax.faces.context.FacesContext context)

Specified by:
getType in class javax.faces.el.MethodBinding

getExpressionString

public String getExpressionString()

Overrides:
getExpressionString in class javax.faces.el.MethodBinding

saveState

public Object saveState(javax.faces.context.FacesContext context)

Specified by:
saveState in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         Object state)

Specified by:
restoreState in interface javax.faces.component.StateHolder

isTransient

public boolean isTransient()

Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean transientFlag)

Specified by:
setTransient in interface javax.faces.component.StateHolder

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object otherObj)

Overrides:
equals in class Object


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.