Class FunctionMapperImpl
java.lang.Object
jakarta.el.FunctionMapper
org.apache.el.lang.FunctionMapperImpl
- All Implemented Interfaces:
Externalizable, Serializable
Thread-safe implementation of FunctionMapper that supports externalization.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a mapped EL function with serialization support. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConcurrentMap<String, FunctionMapperImpl.Function> Map of function keys to their Function instances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmapFunction(String prefix, String localName, Method m) Map a method to a function name.voidresolveFunction(String prefix, String localName) Resolves a function reference to its corresponding staticMethod.void
-
Field Details
-
functions
Map of function keys to their Function instances.
-
-
Constructor Details
-
FunctionMapperImpl
public FunctionMapperImpl()Creates a new empty function mapper.
-
-
Method Details
-
resolveFunction
Description copied from class:jakarta.el.FunctionMapperResolves a function reference to its corresponding staticMethod.- Specified by:
resolveFunctionin classFunctionMapper- Parameters:
prefix- the namespace prefix of the functionlocalName- the local name of the function- Returns:
- the
Methodobject for the resolved function, ornullif not found
-
mapFunction
Description copied from class:jakarta.el.FunctionMapperMap a method to a function name.- Overrides:
mapFunctionin classFunctionMapper- Parameters:
prefix- Function prefixlocalName- Function namem- Method
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-