Class ResolutionContext

java.lang.Object
io.helidon.builder.config.spi.ResolutionContext

public class ResolutionContext extends Object
Config resolution process context.
  • Constructor Details

    • ResolutionContext

      protected ResolutionContext(ResolutionContext.Builder b)
      Constructor for this type that takes a builder.
      Parameters:
      b - the builder
  • Method Details

    • configBeanType

      public Class<?> configBeanType()
      Return the config bean type.
      Returns:
      the config bean type
    • config

      public Config config()
      Return the config.
      Returns:
      the config
    • resolver

      public ConfigResolver resolver()
      Return the config resolver.
      Returns:
      the resolver
    • validator

      public Optional<ConfigBeanBuilderValidator<?>> validator()
      Return the config bean builder validator.
      Returns:
      the validator
    • mappers

      public Map<Class<?>,Function<Config,?>> mappers()
      Return the known config bean mappers associated with this config bean context.
      Returns:
      the config bean mappers
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ResolutionContext.Builder builder()
      Creates a new fluent builder for this type.
      Returns:
      a fluent builder
    • create

      public static ResolutionContext create(Class<?> configBeanType, Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator, Map<Class<?>,Function<Config,?>> mappers)
      Creates a resolution context from the provided arguments.
      Parameters:
      configBeanType - the config bean type
      cfg - the config
      resolver - the resolver
      validator - the bean builder validator
      mappers - the known config bean mappers related to this config bean context
      Returns:
      the resolution context