Package io.micronaut.context.env
Interface PropertyExpressionResolver
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PropertyExpressionResolver
The property expression resolver.- Since:
- 3.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> java.util.Optional<T>
resolve(io.micronaut.core.value.PropertyResolver propertyResolver, io.micronaut.core.convert.ConversionService<?> conversionService, java.lang.String expression, java.lang.Class<T> requiredType)
Resolve the value for the expression of the specified type.
-
-
-
Method Detail
-
resolve
@NonNull <T> java.util.Optional<T> resolve(@NonNull io.micronaut.core.value.PropertyResolver propertyResolver, @NonNull io.micronaut.core.convert.ConversionService<?> conversionService, @NonNull java.lang.String expression, @NonNull java.lang.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
-
-