Package com.avanza.astrix.config
A framework containing core abstractions for dynamic configuration lookup.
-
Interface Summary Interface Description ConfigSource The SPI used to plug in a configuration source into aDynamicConfiginstance.DynamicConfigListener Listener interface for listening to state changes in allDynamicPropertyinstances managed by a singleDynamicConfiginstance.DynamicConfigSource The SPI used to plug in a dynamic configuration source into aDynamicConfiginstance.DynamicProperty<T> A property that can change state even after it is read from aDynamicConfigSource.DynamicPropertyListener<T> Listener interface for subscribing to aDynamicPropertyinstance.MutableConfigSource Most used by test-utility classes to allow setting configuration programmatically.Setting<T> This is an abstraction for an application/framework setting. -
Class Summary Class Description AbstractDynamicConfigSource Skeleton implementation of aDynamicConfigSource.BooleanSetting A Setting of boolean type, seeSettingDynamicBooleanProperty DynamicProperty of boolean type, seeDynamicProperty.DynamicConfig This is an abstraction for a hierarchical set of configuration sources.DynamicEnumProperty<T extends Enum<T>> DynamicIntProperty DynamicProperty of int type, seeDynamicProperty.DynamicListProperty<T> DynamicProperty of Listtype, see DynamicProperty.DynamicLongProperty DynamicProperty of int type, seeDynamicProperty.DynamicOptionalProperty<T> DynamicSetProperty<T> DynamicProperty of Settype, see DynamicProperty.DynamicStringProperty DynamicProperty of String type, seeDynamicProperty.EnumSetting<T extends Enum<T>> A Setting of Enum type, seeSettingGlobalConfigSourceRegistry This is a jvm global registry for ConfigSources, mainly intended to support testing.IntSetting A Setting of int type, seeSettingLongSetting A Setting of long type, seeSettingMapConfigSource Map backedDynamicConfigSourceuseful in testing.PropertiesConfigSource ConfigSourceimplementation delegating all property lookup to aPropertiesinstance.StringSetting A Setting of String type, seeSettingSystemPropertiesConfigSource AConfigSourcethat resolves a property by reading system properties.