Module io.quarkus.qute.debug
Class ValueResolverRegistry
java.lang.Object
io.quarkus.qute.debug.agent.resolvers.ValueResolverRegistry
Registry for Qute
ValueResolvers to support debugging completions
and variable inspection.
This class manages which collector to use for a given ValueResolver
and provides methods to fill a ValueResolverContext with available
properties and methods from Qute templates.
-
Method Summary
Modifier and TypeMethodDescriptionvoidFills the context using only the default reflection-based value resolver.voidPopulates the givenValueResolverContextwith available properties and methods for the base object using all value resolvers registered in the Qute engine.static ValueResolverRegistryReturns the singleton instance of the registry.static booleanisReflectionValueResolver(io.quarkus.qute.ValueResolver valueResolver) Checks if the givenValueResolveris the built-in ReflectionValueResolver.
-
Method Details
-
getInstance
Returns the singleton instance of the registry.- Returns:
- the
ValueResolverRegistryinstance
-
fillWithValueResolvers
Populates the givenValueResolverContextwith available properties and methods for the base object using all value resolvers registered in the Qute engine.- Parameters:
context- the context to fill with properties/methods
-
fillWithReflectionValueResolver
Fills the context using only the default reflection-based value resolver.- Parameters:
context- the context to fill
-
isReflectionValueResolver
public static boolean isReflectionValueResolver(io.quarkus.qute.ValueResolver valueResolver) Checks if the givenValueResolveris the built-in ReflectionValueResolver.- Parameters:
valueResolver- the resolver to check- Returns:
- true if it's a ReflectionValueResolver, false otherwise
-