Package com.adobe.granite.ui.components
Interface ExpressionResolver
A service to resolve an expression into an actual object.
-
Method Summary
Modifier and TypeMethodDescription<T> Tresolve(String expression, Locale locale, Class<T> expectedType, PageContext pageContext) Resolves the given expression.<T> Tresolve(String expression, Locale locale, Class<T> expectedType, SlingHttpServletRequest request) Resolves the given expression.
-
Method Details
-
resolve
@Nonnull <T> T resolve(@Nonnull String expression, @Nonnull Locale locale, @Nonnull Class<T> expectedType, @Nonnull PageContext pageContext) Resolves the given expression.- Type Parameters:
T- The type of the resolved expression- Parameters:
expression- The expression to resolvelocale- The localeexpectedType- The type the result of the expression will be coerced to after evaluationpageContext- The current page context- Returns:
- The result of expression
-
resolve
@Nonnull <T> T resolve(@Nonnull String expression, @Nonnull Locale locale, @Nonnull Class<T> expectedType, @Nonnull SlingHttpServletRequest request) Resolves the given expression.- Type Parameters:
T- The type of the resolved expression- Parameters:
expression- The expression to resolvelocale- The localeexpectedType- The type the result of the expression will be coerced to after evaluationrequest- The current request- Returns:
- The result of expression
-