Package io.micronaut.context.env.exp
Class RandomPropertyExpressionResolver
java.lang.Object
io.micronaut.context.env.exp.RandomPropertyExpressionResolver
- All Implemented Interfaces:
PropertyExpressionResolver
@Internal
public final class RandomPropertyExpressionResolver
extends Object
implements PropertyExpressionResolver
The property expression for random values.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>
resolve
(PropertyResolver propertyResolver, ConversionService conversionService, String expression, Class<T> requiredType) Resolve the value for the expression of the specified type.
-
Constructor Details
-
RandomPropertyExpressionResolver
public RandomPropertyExpressionResolver()
-
-
Method Details
-
resolve
public <T> Optional<T> resolve(PropertyResolver propertyResolver, ConversionService conversionService, String expression, Class<T> requiredType) Description copied from interface:PropertyExpressionResolver
Resolve the value for the expression of the specified type.- Specified by:
resolve
in interfacePropertyExpressionResolver
- Type Parameters:
T
- The type- Parameters:
propertyResolver
- The property resolverconversionService
- The conversion serviceexpression
- The expressionrequiredType
- The required typ- Returns:
- The optional resolved value
-