public final class ProtectedFunctionMapper
extends javax.el.FunctionMapper
| Modifier and Type | Field and Description |
|---|---|
private java.util.HashMap<java.lang.String,java.lang.reflect.Method> |
fnmap
Maps "prefix:name" to java.lang.Method objects.
|
private java.lang.reflect.Method |
theMethod
If there is only one function in the map, this is the Method for it.
|
| Modifier | Constructor and Description |
|---|---|
private |
ProtectedFunctionMapper()
Constructor has protected access.
|
| Modifier and Type | Method and Description |
|---|---|
static ProtectedFunctionMapper |
getInstance()
Generated Servlet and Tag Handler implementations call this
method to retrieve an instance of the ProtectedFunctionMapper.
|
static ProtectedFunctionMapper |
getMapForFunction(java.lang.String fnQName,
java.lang.Class<?> c,
java.lang.String methodName,
java.lang.Class<?>[] args)
Creates an instance for this class, and stores the Method for
the given EL function prefix and name.
|
void |
mapFunction(java.lang.String fnQName,
java.lang.Class<?> c,
java.lang.String methodName,
java.lang.Class<?>[] args)
Stores a mapping from the given EL function prefix and name to
the given Java method.
|
java.lang.reflect.Method |
resolveFunction(java.lang.String prefix,
java.lang.String localName)
Resolves the specified local name and prefix into a Java.lang.Method.
|
private java.util.HashMap<java.lang.String,java.lang.reflect.Method> fnmap
private java.lang.reflect.Method theMethod
private ProtectedFunctionMapper()
public static ProtectedFunctionMapper getInstance()
public void mapFunction(java.lang.String fnQName,
java.lang.Class<?> c,
java.lang.String methodName,
java.lang.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 methodjava.lang.RuntimeException - if no method with the given signature
could be found.public static ProtectedFunctionMapper getMapForFunction(java.lang.String fnQName, java.lang.Class<?> c, java.lang.String methodName, java.lang.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 methodjava.lang.RuntimeException - if no method with the given signature
could be found.public java.lang.reflect.Method resolveFunction(java.lang.String prefix,
java.lang.String localName)
resolveFunction in class javax.el.FunctionMapperprefix - the prefix of the functionlocalName - the short name of the function