Package io.micronaut.context.env
Interface PropertyExpressionResolver
- All Known Implementing Classes:
RandomPropertyExpressionResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The property expression resolver.
- Since:
- 3.5.0
- Author:
- Denis Stepanov
-
Method Summary
-
Method Details
-
resolve
@NonNull <T> @NonNull Optional<T> resolve(@NonNull @NonNull PropertyResolver propertyResolver, @NonNull @NonNull ConversionService conversionService, @NonNull @NonNull String expression, @NonNull @NonNull Class<T> requiredType) Resolve the value for the expression of the specified type.- Type Parameters:
T
- The type- Parameters:
propertyResolver
- The property resolverconversionService
- The conversion serviceexpression
- The expressionrequiredType
- The required typ- Returns:
- The optional resolved value
-