com.mockrunner.mock.web
Class MockFunctionMapper
java.lang.Object
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
.
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 |
MockFunctionMapper
public MockFunctionMapper()
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 functionlocalName
- the name of the functionfunction
- 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