Class HandlerConfigurationProviderBuildItem


  • public final class HandlerConfigurationProviderBuildItem
    extends io.quarkus.builder.item.MultiBuildItem
    Build time that allows extensions to register a way to provide a value for configuration that is provided at runtime and that is needed by implementations of GenericRuntimeConfigurableServerRestHandler. Extensions are meant to create these build items by passing the configuration class as the first constructor argument, and using a recorder to return a Supplier that will provide a value of that class as the second argument constructor. Ideally we would have used generic to make things more type safe, but generics cannot be used in build items.
    • Constructor Detail

      • HandlerConfigurationProviderBuildItem

        public HandlerConfigurationProviderBuildItem​(Class configClass,
                                                     Supplier valueSupplier)
    • Method Detail

      • getConfigClass

        public Class getConfigClass()
      • getValueSupplier

        public Supplier getValueSupplier()