在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):npryce/konfig开源软件地址(OpenSource Url):https://github.com/npryce/konfig开源编程语言(OpenSource Language):Kotlin 99.2%开源软件介绍(OpenSource Introduction):Konfig - A Type Safe Configuration API for KotlinKonfig provides an extensible, type-safe API for configuration properties gathered from multiple sources — built in resources, system properties, property files, environment variables, command-line arguments, etc. A secondary goal of Konfig is to make configuration "self explanatory”. Misconfiguration errors are reported with the location and “true name”
of the badly configured property. E.g. a program may look up a key
defined as Configuration can be inspected and listed. For example, it can be exposed by HTTP to a network management system to help site reliability engineers understand the current configuration of a running application. Getting StartedTo get started, add
Konfig can load properties from:
Konfig can easily be extended with new property types and sources of configuration data. Konfig can report where configuration properties are searched for and where they were found. Naming of PropertiesKonfig's Configuration objects expect property names to follow Java property name conventions: dots to represent hierarchy, lower-case identifiers within the hierarchy, hyphens to separate words in those identifiers. For example: Each Configuration implementation maps from that naming convention to the convention used by the underlying configuration store. E.g. the Configuration is an interface and Key is a data class. This makes it straight forward to write an implementation of Configuration that translates the names of keys to different naming conventions, if your configuration follows an unusual convention. Reflectomagic key definitionKonfig has a few ways to reduce boilerplate code when defining configuration keys.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论