Package io.micronaut.testresources.core
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 Summary
-
Constructor Summary
ConstructorDescriptionLazyTestResourcesExpressionResolver
(io.micronaut.context.env.PropertyExpressionResolver delegate) -
Method Summary
-
Field Details
-
PLACEHOLDER_PREFIX
- See Also:
-
-
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 interfaceio.micronaut.context.env.PropertyExpressionResolver
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-