Class LazyTestResourcesExpressionResolver

java.lang.Object
io.micronaut.testresources.core.LazyTestResourcesExpressionResolver
All Implemented Interfaces:
io.micronaut.context.env.PropertyExpressionResolver, AutoCloseable
Direct Known Subclasses:
EmbeddedTestResourcesPropertyExpressionResolver, TestResourcesClientPropertyExpressionResolver

public class LazyTestResourcesExpressionResolver extends Object implements io.micronaut.context.env.PropertyExpressionResolver, AutoCloseable
A property expression resolver which delegates to another resolver if the property expression to be resolved starts with the expected prefix. The delegate is called with the prefix removed.
  • Field Details

  • Constructor Details

    • LazyTestResourcesExpressionResolver

      public LazyTestResourcesExpressionResolver(io.micronaut.context.env.PropertyExpressionResolver delegate)
  • Method Details

    • resolve

      public <T> Optional<T> resolve(io.micronaut.core.value.PropertyResolver propertyResolver, io.micronaut.core.convert.ConversionService conversionService, String expression, Class<T> requiredType)
      Specified by:
      resolve in interface io.micronaut.context.env.PropertyExpressionResolver
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception