Class DropwizardConfigurationHelper<C extends io.dropwizard.Configuration>

    • Method Detail

      • configFrom

        public static <C1 extends io.dropwizard.Configuration> ConfigurationBuilders.PortBuilder<C1> configFrom​(java.util.function.Supplier<C1> configurationSupplier)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Type Parameters:
        C1 - the type of the Configuration used by an Application
        Parameters:
        configurationSupplier - a supplier that creates the initial Configuration, e.g. MyAppConfig::new
        Returns:
        a builder for programmatic configuration
      • withPorts

        public ConfigurationBuilders.CustomizationBuilder<C> withPorts​(int applicationPort,
                                                                       int adminPort)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: ConfigurationBuilders.PortBuilder
        Sets the given ports as fixed ports. This settings is equal to setting the connector ports in the configuration yaml to the given ports.
        Specified by:
        withPorts in interface ConfigurationBuilders.PortBuilder<C extends io.dropwizard.Configuration>
        Parameters:
        applicationPort - the port the application connector listens to
        adminPort - the port the admin connector listens to
        Returns:
        the builder instance
      • build

        public C build()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        build in interface ConfigurationBuilders.CustomizationBuilder<C extends io.dropwizard.Configuration>
        Returns:
        the Configuration of type C created with this builder