Interface ConfigurationBuilders.CustomizationBuilder<C extends io.dropwizard.Configuration>

    • Method Detail

      • withConfigurationModifier

        ConfigurationBuilders.CustomizationBuilder<C> withConfigurationModifier​(java.util.function.Consumer<C> configurationCustomizer)
        Allows to customize the configuration programmatically.
        Parameters:
        configurationCustomizer - a consumer that receives the current Configuration of type C to modify it's internals
        Returns:
        a builder for further configuration
      • withRootPath

        ConfigurationBuilders.CustomizationBuilder<C> withRootPath​(java.lang.String rootPath)
        Sets the jersey root path, referenced in the config.yaml as
           server:
             rootPath: /*
         
        Parameters:
        rootPath - the path to set as root of the API
        Returns:
        the builder instance
      • build

        C build()
        Returns:
        the Configuration of type C created with this builder