A ConfigProvider is a service that provides configuration given a description of the structure of that configuration.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Value members
Concrete methods
Returns a new config provider that will automatically tranform all path configuration names with the specified function. This can be utilized to adapt the names of configuration properties from one naming convention to another.
Returns a new config provider that will automatically tranform all path configuration names with the specified function. This can be utilized to adapt the names of configuration properties from one naming convention to another.
Attributes
Flattens this config provider into a simplified config provider that knows only how to deal with flat (key/value) properties.
Flattens this config provider into a simplified config provider that knows only how to deal with flat (key/value) properties.
Attributes
Returns a new config provider that will automatically convert all property names to kebab case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Returns a new config provider that will automatically convert all property names to kebab case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Note: This method now correctly handles numbers in camelCase names (e.g., "myValue123" becomes "my-value-123"). For backward compatibility with the legacy behavior, use kebabCaseLegacy.
Attributes
Loads the configuration of type A using implicit Config[A], or fails with a config error.
Loads the configuration of type A using implicit Config[A], or fails with a config error.
Attributes
Returns a new config provider that will automatically convert all property names to lower case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Returns a new config provider that will automatically convert all property names to lower case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Attributes
Returns a new config provider that will automatically nest all configuration under the specified property name. This can be utilized to aggregate separate configuration sources that are all required to load a single configuration value.
Returns a new config provider that will automatically nest all configuration under the specified property name. This can be utilized to aggregate separate configuration sources that are all required to load a single configuration value.
Attributes
Returns a new config provider that preferentially loads configuration data from this one, but which will fall back to the specified alternate provider if there are any issues loading the configuration from this provider.
Returns a new config provider that preferentially loads configuration data from this one, but which will fall back to the specified alternate provider if there are any issues loading the configuration from this provider.
Attributes
Returns a new config provider that will automatically convert all property names to snake case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Returns a new config provider that will automatically convert all property names to snake case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Note: This method now correctly handles numbers in camelCase names (e.g., "myValue123" becomes "my_value_123"). For backward compatibility with the legacy behavior, use snakeCaseLegacy.
Attributes
Returns a new config provider that will automatically unnest all configuration from the specified property name.
Returns a new config provider that will automatically unnest all configuration from the specified property name.
Attributes
Returns a new config provider that will automatically convert all property names to upper case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Returns a new config provider that will automatically convert all property names to upper case. This can be utilized to adapt the names of configuration properties from the default naming convention of camel case to the naming convention of a config provider.
Attributes
Returns a new config provider that transforms the config provider with the specified function within the specified path.
Returns a new config provider that transforms the config provider with the specified function within the specified path.
Attributes
Deprecated methods
Legacy implementation of kebab case conversion that maintains backward compatibility with ZIO 2.0.x behavior. This method does not handle numbers in camelCase names (e.g., "myValue123" becomes "my-value123").
Legacy implementation of kebab case conversion that maintains backward compatibility with ZIO 2.0.x behavior. This method does not handle numbers in camelCase names (e.g., "myValue123" becomes "my-value123").
Consider migrating to kebabCase for better handling of numbers.
Attributes
- Deprecated
-
[Since version 2.1.20]Use kebabCase for improved number handlingUse kebabCase for improved number handling
Legacy implementation of snake case conversion that maintains backward compatibility with ZIO 2.0.x behavior. This method does not handle numbers in camelCase names (e.g., "myValue123" becomes "my_value123").
Legacy implementation of snake case conversion that maintains backward compatibility with ZIO 2.0.x behavior. This method does not handle numbers in camelCase names (e.g., "myValue123" becomes "my_value123").
Consider migrating to snakeCase for improved number handling.
Attributes
- Deprecated
-
[Since version 2.1.0]Use snakeCase for improved number handlingUse snakeCase for improved number handling