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 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 interface PropertyExpressionResolver
      Type Parameters:
      T - The type
      Parameters:
      propertyResolver - The property resolver
      conversionService - The conversion service
      expression - The expression
      requiredType - The required typ
      Returns:
      The optional resolved value