Container.FunctionCallMacroHandler

public static interface Container.FunctionCallMacroHandler

Handler that is provided by the application to calculate the value of a custom macro.

Public Method Summary

abstract Object
getValue(String macroName, Map<String, Object> parameters)

Public Methods

public abstract Object getValue (String macroName, Map<String, Object> parameters)

Handler is given the macro name and a map of named parameters (the map may contain String, Double, Boolean, Map, or List values). It should return an object which is the calculated value of the macro.

The macroName is the same name by which the handler was registered. It's provided as a convenience to allow a single handler to be registered for multiple function call macros.

Returns
  • a String, Boolean, Integer, Long, or Double