Interface ELVariableProvider
@ConsumerType
public interface ELVariableProvider
SPI for providing a custom EL variable within a Granite UI component.
EL variables of all OSGi services implementing this interface are automatically available below
containers of type
/apps/acs-commons/touchui-widgets/enriched-el-container.
ExpressionCustomizer- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetVariables(org.apache.sling.api.SlingHttpServletRequest request)
-
Method Details
-
getVariables
@NotNull @NotNull Map<String,Object> getVariables(org.apache.sling.api.SlingHttpServletRequest request) - Returns:
- the name and value of the custom EL variable (usable in in Granite Expression Language).
The key of the map is the variable name (should be unique), the value is the variable value (might be complex object or primitive wrapper).
The name must not contain
.Must never benull, but can be the empty map if no variable is provided.
-