Interface ExpressionResolver
- All Known Implementing Classes:
JexlExpressionResolver
public interface ExpressionResolver
Resolves annotation expressions to their corresponding values.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddContext(String key, Object value) Add a context to the expression resolver.<S,T> void addConverter(Class<S> source, Class<T> target, Converter<S, T> converter) <T> TResolves the given expression for the specified method and return type.
-
Method Details
-
resolve
Resolves the given expression for the specified method and return type.- Type Parameters:
T- the type of the resolved value- Parameters:
expression- the expression to resolveexpectedReturnType- the expected return type- Returns:
- the resolved value, or null if it cannot be resolved
-
addContext
Add a context to the expression resolver.- Parameters:
key- The key of the contextvalue- The value/provider of the context
-
addConverter
-