public class SpinFunctionMapper extends FunctionMapper
Lazy loading: This implementation supports lazy loading: the Java Methods are loaded upon the first request.
Caching: once the methods are loaded, they are cached in a Map for efficient retrieval.
Modifier and Type | Field and Description |
---|---|
static Map<String,Method> |
SPIN_FUNCTION_MAP |
Constructor and Description |
---|
SpinFunctionMapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
createMethodBindings() |
protected void |
ensureSpinFunctionMapInitialized() |
Method |
resolveFunction(String prefix,
String localName)
Resolves the specified prefix and local name into a java.lang.Method.
|
public Method resolveFunction(String prefix, String localName)
FunctionMapper
resolveFunction
in class FunctionMapper
prefix
- the prefix of the function, or "" if no prefix. For example, "fn" in
${fn:method()}, or "" in ${method()}.localName
- the short name of the function. For example, "method" in ${fn:method()}.protected void ensureSpinFunctionMapInitialized()
protected void createMethodBindings()
Copyright © 2020. All rights reserved.