|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.el.FunctionMapper
org.apache.jasper.runtime.ProtectedFunctionMapper
public final class ProtectedFunctionMapper
Maps EL functions to their Java method counterparts. Keeps the actual Method objects protected so that JSP pages can't indirectly do reflection.
| 方法摘要 | |
|---|---|
static ProtectedFunctionMapper |
getInstance()
Generated Servlet and Tag Handler implementations call this method to retrieve an instance of the ProtectedFunctionMapper. |
static ProtectedFunctionMapper |
getMapForFunction(String fnQName,
Class<?> c,
String methodName,
Class<?>[] args)
Creates an instance for this class, and stores the Method for the given EL function prefix and name. |
void |
mapFunction(String fnQName,
Class<?> c,
String methodName,
Class<?>[] args)
Stores a mapping from the given EL function prefix and name to the given Java method. |
Method |
resolveFunction(String prefix,
String localName)
Resolves the specified local name and prefix into a Java.lang.Method. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static ProtectedFunctionMapper getInstance()
public void mapFunction(String fnQName,
Class<?> c,
String methodName,
Class<?>[] args)
fnQName - The EL function qualified name (including prefix)c - The class containing the Java methodmethodName - The name of the Java methodargs - The arguments of the Java method
RuntimeException - if no method with the given signature
could be found.
public static ProtectedFunctionMapper getMapForFunction(String fnQName,
Class<?> c,
String methodName,
Class<?>[] args)
fnQName - The EL function qualified name (including prefix)c - The class containing the Java methodmethodName - The name of the Java methodargs - The arguments of the Java method
RuntimeException - if no method with the given signature
could be found.
public Method resolveFunction(String prefix,
String localName)
FunctionMapper 中的 resolveFunctionprefix - the prefix of the functionlocalName - the short name of the function
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||