com.mockrunner.mock.web
Class MockFunctionMapper

java.lang.Object
  extended by com.mockrunner.mock.web.MockFunctionMapper
All Implemented Interfaces:
javax.servlet.jsp.el.FunctionMapper

public class MockFunctionMapper
extends java.lang.Object
implements javax.servlet.jsp.el.FunctionMapper

Mock implementation of FunctionMapper.


Constructor Summary
MockFunctionMapper()
           
 
Method Summary
 void addFunction(java.lang.String prefix, java.lang.String localName, java.lang.reflect.Method function)
          Adds a function for the specified prefix and name.
 void clearFunctions()
          Clears all functions.
 java.lang.reflect.Method resolveFunction(java.lang.String prefix, java.lang.String localName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFunctionMapper

public MockFunctionMapper()
Method Detail

addFunction

public void addFunction(java.lang.String prefix,
                        java.lang.String localName,
                        java.lang.reflect.Method function)
Adds a function for the specified prefix and name.

Parameters:
prefix - the prefix of the function
localName - the name of the function
function - the function as Method

clearFunctions

public void clearFunctions()
Clears all functions.


resolveFunction

public java.lang.reflect.Method resolveFunction(java.lang.String prefix,
                                                java.lang.String localName)
Specified by:
resolveFunction in interface javax.servlet.jsp.el.FunctionMapper