Package com.adobe.granite.ui.components
Interface ExpressionResolver
-
@ProviderType public interface ExpressionResolver
A service to resolve an expression into an actual object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
resolve(String expression, Locale locale, Class<T> expectedType, PageContext pageContext)
Resolves the given expression.<T> T
resolve(String expression, Locale locale, Class<T> expectedType, SlingHttpServletRequest request)
Resolves the given expression.
-
-
-
Method Detail
-
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
-
-