Interface ConfigurationBuilders.CustomizationBuilder<C extends io.dropwizard.Configuration>
-
- All Known Implementing Classes:
DropwizardConfigurationHelper
- Enclosing interface:
- ConfigurationBuilders
public static interface ConfigurationBuilders.CustomizationBuilder<C extends io.dropwizard.Configuration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description C
build()
ConfigurationBuilders.CustomizationBuilder<C>
withConfigurationModifier(java.util.function.Consumer<C> configurationCustomizer)
Allows to customize the configuration programmatically.ConfigurationBuilders.CustomizationBuilder<C>
withRootPath(java.lang.String rootPath)
Sets thejersey root path
, referenced in theconfig.yaml
as
-
-
-
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 currentConfiguration
of typeC
to modify it's internals- Returns:
- a builder for further configuration
-
withRootPath
ConfigurationBuilders.CustomizationBuilder<C> withRootPath(java.lang.String rootPath)
Sets thejersey root path
, referenced in theconfig.yaml
asserver: rootPath: /*
- Parameters:
rootPath
- the path to set as root of the API- Returns:
- the builder instance
-
build
C build()
- Returns:
- the
Configuration
of typeC
created with this builder
-
-