ConfigProviderResolver#getBuilder()
| Modifier and Type | Method and Description |
|---|---|
| public ConfigBuilder | Returns: this configuration builder instanceAdd the default configuration sources to the configuration being built. |
| public ConfigBuilder | Returns: this configuration builder instanceAdd all configuration converters which can be discovered from this configuration builder's class loader. |
| public ConfigBuilder | Returns: this configuration builder instanceAdd all configuration sources which can be discovered from this configuration builder's class loader. |
| public Config | |
| public ConfigBuilder | Returns: this configuration builder instancethe class loader loader)Specify the class loader for which this configuration is being built. |
| public < the type to convert T> ConfigBuilder | Returns: this configuration builder instancethe class of the type to convert type, int the priority of the converter priority, Converter<T> the converter (can not be converter)null)Add the specified |
| public ConfigBuilder | Returns: this configuration builder instancethe converters to add converters)Add the specified |
| public ConfigBuilder | Returns: this configuration builder instancethe configuration sources sources)Add the specified |
| addDefaultSources | back to summary |
|---|---|
| public ConfigBuilder addDefaultSources() Add the default configuration sources to the configuration being built.
| |
| addDiscoveredConverters | back to summary |
|---|---|
| public ConfigBuilder addDiscoveredConverters() Add all configuration converters which can be discovered from this configuration builder's class loader.
| |
| addDiscoveredSources | back to summary |
|---|---|
| public ConfigBuilder addDiscoveredSources() Add all configuration sources which can be discovered from this configuration builder's class loader.
| |
| build | back to summary |
|---|---|
| public Config build() Build a new
| |
| forClassLoader | back to summary |
|---|---|
| public ConfigBuilder forClassLoader(ClassLoader loader) Specify the class loader for which this configuration is being built.
| |
| withConverter | back to summary |
|---|---|
| public <T> ConfigBuilder withConverter(Class<T> type, int priority, Converter<T> converter) Add the specified This method does not rely on reflection to determine the target type of the converter; therefore, lambda expressions may be used for the converter instance.
The priority value of custom converters defaults to
| |
| withConverters | back to summary |
|---|---|
| public ConfigBuilder withConverters(Converter<?>... converters) Add the specified The implementation may use reflection to determine the target type of the converter. If the type cannot be determined reflectively, this method may fail with a runtime exception.
When using lambda expressions for custom converters you should use the
The added converters will be given a priority of
| |
| withSources | back to summary |
|---|---|
| public ConfigBuilder withSources(ConfigSource... sources) Add the specified
| |