com.github.kiran002.kissconfig.config.api
The resolve method translates a field name from its scala convention to the hocon conventin
The resolve method translates a field name from its scala convention to the hocon conventin
: The name of the field in the case class
output string : the configuration key, which should be used to extract the value from the config object
Interface used to define a ResolutionStrategy.
Naming conventions can be different going from scala to hocon config. ResolutionStrategy defines the api that is used for the translation of scala field names to hocon config keys
This example shows how to define a simple
AddB
resolution strategy. The resolution strategy simply adds 'B' to the end fo the field name.More example are available under com.github.kiran002.kissconfig.config.impl.ResolutionStrategies
,This is only an example for how to define a resolution strategy, this should never be used in your application.