Class ValueResolverRegistry

java.lang.Object
io.quarkus.qute.debug.agent.resolvers.ValueResolverRegistry

public class ValueResolverRegistry extends Object
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 Details

    • getInstance

      public static ValueResolverRegistry getInstance()
      Returns the singleton instance of the registry.
      Returns:
      the ValueResolverRegistry instance
    • fillWithValueResolvers

      public void fillWithValueResolvers(ValueResolverContext context)
      Populates the given ValueResolverContext with 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

      public void fillWithReflectionValueResolver(ValueResolverContext context)
      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 given ValueResolver is the built-in ReflectionValueResolver.
      Parameters:
      valueResolver - the resolver to check
      Returns:
      true if it's a ReflectionValueResolver, false otherwise