The default implementation of the ExpressionEvaluator service
requires an instance of Function Mapper to retrieve the definitions
of custom functions used in expressions while evaluating expressions.
You can configure it using the functionMapper property of
the default ExpressionEvaluator service. In Java, the function-mapper
is an implementation of the javax.servlet.jsp.el.FunctionMapper
interface, and must resolve a given prefix and local-name to an
actual Java function (an instance of java.lang.reflect.Method) which
the expression manager can call as part of expression evaluation.
The com.adobe.solutions.exm.runtime.IFunctionMapper interface represents
the client-side function mapper. This interface has the same contract
as its server-side counterpart. Given a function prefix and local-name,
it returns a Function instance that is the expression manager. For
remote functions which are asynchronous by nature, the Function
instance is expected to return an RPC token (an instance of mx.rpc.AsyncToken)
upon invocation by the expression manager. Expression Manager provides
a default IFunctionMapper implementation (com.adobe.solutions.exm.runtime.impl.SimpleFunctionMapper)
which is suitable for use by most applications.
|
|
|