Uses of Interface
org.confng.api.ConfNGKey
-
Packages that use ConfNGKey Package Description org.confng org.confng.encryption org.confng.generator org.confng.internal org.confng.metrics org.confng.validation -
-
Uses of ConfNGKey in org.confng
Methods in org.confng that return types with arguments of type ConfNGKey Modifier and Type Method Description static List<ConfNGKey>ConfNG. discoverAllConfigKeys(String... basePackages)Discovers all ConfNGKey implementations in the classpath.Methods in org.confng with parameters of type ConfNGKey Modifier and Type Method Description static StringConfNG. get(ConfNGKey key)Gets a configuration value for the given key.static StringConfNG. getAllForDisplay(ConfNGKey... keys)Gets all configuration values for display purposes.static Map<String,ConfigSourceInfo>ConfNG. getAllSourceInfo(ConfNGKey... keys)Gets source information for multiple configuration keys.static BooleanConfNG. getBoolean(ConfNGKey key)Gets a configuration value as a boolean.static DoubleConfNG. getDouble(ConfNGKey key)Gets a configuration value as a double.static DurationConfNG. getDuration(ConfNGKey key)Gets a configuration value as a Duration.static StringConfNG. getForDisplay(ConfNGKey key)Gets a configuration value with masking for sensitive data.static IntegerConfNG. getInt(ConfNGKey key)Gets a configuration value as an integer.static List<String>ConfNG. getList(ConfNGKey key)Gets a configuration value as a list of strings.static List<String>ConfNG. getList(ConfNGKey key, String delimiter)Gets a configuration value as a list of strings with a custom delimiter.static LongConfNG. getLong(ConfNGKey key)Gets a configuration value as a long.static Optional<String>ConfNG. getOptional(ConfNGKey key)Gets a configuration value as an Optional.static StringConfNG. getOrDefault(ConfNGKey key, String defaultValue)Gets a configuration value with a fallback default.static StringConfNG. getRequired(ConfNGKey key)Gets a required configuration value.static ConfigSourceInfoConfNG. getSourceInfo(ConfNGKey key)Gets information about which source provided the value for a configuration key.static ValidationResultConfNG. validate(ConfNGKey... keys)Validates the specified configuration keys against their defined constraints.Method parameters in org.confng with type arguments of type ConfNGKey Modifier and Type Method Description static Map<String,ConfigSourceInfo>ConfNG. getAllSourceInfo(List<ConfNGKey> keys)Gets source information for a list of configuration keys.static Map<String,ConfigSourceInfo>ConfNG. getByPrefixWithInfo(String prefix, List<ConfNGKey> keys)Gets all configuration values that match a given prefix, with source information.static ValidationResultConfNG. validate(List<ConfNGKey> keys)Validates the specified configuration keys against their defined constraints. -
Uses of ConfNGKey in org.confng.encryption
Methods in org.confng.encryption with parameters of type ConfNGKey Modifier and Type Method Description StringEncryptionManager. decryptIfNeeded(ConfNGKey key, String value)Decrypts a value if it appears to be encrypted and the key is marked with @Encrypted. -
Uses of ConfNGKey in org.confng.generator
Methods in org.confng.generator with type parameters of type ConfNGKey Modifier and Type Method Description <E extends Enum<E> & ConfNGKey>
voidTemplateGenerator. generateTemplate(Class<E> keyClass, String environment, String outputPath)Generates a configuration template for a specific environment.<E extends Enum<E> & ConfNGKey>
voidTemplateGenerator. generateTemplates(Class<E> keyClass, String outputDir)Generates configuration templates for all configured environments. -
Uses of ConfNGKey in org.confng.internal
Methods in org.confng.internal that return types with arguments of type ConfNGKey Modifier and Type Method Description static List<ConfNGKey>ConfigDiscovery. discoverAllConfigKeys(String... basePackages)Discovers all ConfNGKey implementations in the classpath.Methods in org.confng.internal with parameters of type ConfNGKey Modifier and Type Method Description StringConfigResolver. get(ConfNGKey key)Gets a configuration value for the given key.StringConfigResolver. getAllForDisplay(ConfNGKey... keys)Gets all configuration values for display purposes.Map<String,ConfigSourceInfo>ConfigResolver. getAllSourceInfo(ConfNGKey... keys)Gets source information for all resolved configuration keys.BooleanConfigResolver. getBoolean(ConfNGKey key)Gets a configuration value as a boolean.DoubleConfigResolver. getDouble(ConfNGKey key)Gets a configuration value as a double.DurationConfigResolver. getDuration(ConfNGKey key)Gets a configuration value as a Duration.StringConfigResolver. getForDisplay(ConfNGKey key)Gets a configuration value with masking for sensitive data.IntegerConfigResolver. getInt(ConfNGKey key)Gets a configuration value as an integer.List<String>ConfigResolver. getList(ConfNGKey key)Gets a configuration value as a list of strings.List<String>ConfigResolver. getList(ConfNGKey key, String delimiter)Gets a configuration value as a list of strings with a custom delimiter.LongConfigResolver. getLong(ConfNGKey key)Gets a configuration value as a long.Optional<String>ConfigResolver. getOptional(ConfNGKey key)Gets a configuration value as an Optional.StringConfigResolver. getOrDefault(ConfNGKey key, String defaultValue)Gets a configuration value with a fallback default.StringConfigResolver. getRequired(ConfNGKey key)Gets a required configuration value.ConfigSourceInfoConfigResolver. getSourceInfo(ConfNGKey key)Gets information about which source provided the value for a configuration key.Method parameters in org.confng.internal with type arguments of type ConfNGKey Modifier and Type Method Description Map<String,ConfigSourceInfo>ConfigResolver. getAllSourceInfo(List<ConfNGKey> keys)Gets source information for all resolved configuration keys.Map<String,ConfigSourceInfo>ConfigResolver. getByPrefixWithInfo(String prefix, List<ConfNGKey> keys)Gets all configuration values that match a given prefix, with source information. -
Uses of ConfNGKey in org.confng.metrics
Methods in org.confng.metrics with type parameters of type ConfNGKey Modifier and Type Method Description <E extends Enum<E> & ConfNGKey>
voidConfigLogger. doLogConfiguration(Class<E> keyClass)Logs configuration with the current settings.<E extends Enum<E> & ConfNGKey>
voidConfigLogger.Builder. logConfiguration(Class<E> keyClass)static <E extends Enum<E> & ConfNGKey>
voidConfigLogger. logConfiguration(Class<E> keyClass)Logs configuration for the given ConfNGKey enum class. -
Uses of ConfNGKey in org.confng.validation
Method parameters in org.confng.validation with type arguments of type ConfNGKey Modifier and Type Method Description ValidationResultConfigValidator. validate(List<ConfNGKey> keys)Validates all discovered ConfNGKey implementations.Constructor parameters in org.confng.validation with type arguments of type ConfNGKey Constructor Description ConfigValidator(Function<ConfNGKey,String> valueResolver)Creates a new ConfigValidator with the given value resolver.
-