Index
All Classes and Interfaces|All Packages|Serialized Form
A
- asMap() - Method in class io.github.arthurhoch.kissconfig.ConfigMap
-
Returns a string-only view keyed by canonical key.
B
- builder() - Static method in class io.github.arthurhoch.kissconfig.KissConfig
-
Creates a new builder with default options.
C
- canonicalKey() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
canonicalKeyrecord component. - classpath() - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that reads application classpath property resources.
- CLASSPATH - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Application classpath resources such as application.properties.
- CLASSPATH_LIBRARIES - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Library defaults from META-INF/kiss-config/defaults.properties.
- classpathLibraries() - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that reads library defaults from META-INF/kiss-config/defaults.properties.
- classpathOnly() - Static method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Returns an order that reads only classpath library defaults and application classpath resources.
- ConfigDuplicateKeyException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Thrown when duplicate canonical keys are not allowed by the active merge strategy.
- ConfigDuplicateKeyException(String, String, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigDuplicateKeyException
-
Creates a duplicate key exception.
- ConfigException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Base runtime exception for all KissConfig failures.
- ConfigException(String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigException
-
Creates an exception with a message.
- ConfigException(String, Throwable) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigException
-
Creates an exception with a message and cause.
- ConfigException(String, Throwable, String, String, String, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigException
-
Creates an exception with diagnostic metadata.
- ConfigInterpolationException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Thrown when variable interpolation fails.
- ConfigInterpolationException(String, String, String, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigInterpolationException
-
Creates an interpolation exception.
- ConfigInvalidProfileException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Thrown when a profile name is invalid.
- ConfigInvalidProfileException(String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigInvalidProfileException
-
Creates an invalid profile exception.
- ConfigLoadException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Thrown when a configuration source cannot be loaded.
- ConfigLoadException(String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigLoadException
-
Creates a load exception.
- ConfigLoadException(String, Throwable, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigLoadException
-
Creates a load exception with a cause and source.
- ConfigLocation - Class in io.github.arthurhoch.kissconfig
-
Immutable value object describing one configuration source location in a
SearchOrder. - ConfigLocationType - Enum Class in io.github.arthurhoch.kissconfig
-
Identifies the kind of place KissConfig can read configuration from.
- configMap() - Method in record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Returns the value of the
configMaprecord component. - ConfigMap - Class in io.github.arthurhoch.kissconfig
-
Immutable normalized configuration map.
- ConfigMap(Map<String, ConfigValue>) - Constructor for class io.github.arthurhoch.kissconfig.ConfigMap
-
Creates a config map from normalized keys to config values.
- ConfigMappingException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Thrown when configuration cannot be mapped to a target type.
- ConfigMappingException(String, String, String, String, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigMappingException
-
Creates a mapping exception without cause.
- ConfigMappingException(String, Throwable, String, String, String, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigMappingException
-
Creates a mapping exception.
- ConfigMissingPropertyException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Thrown when a required configuration key is missing.
- ConfigMissingPropertyException(String, String, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigMissingPropertyException
-
Creates a missing property exception.
- ConfigName - Annotation Interface in io.github.arthurhoch.kissconfig.annotations
-
Changes the configuration key used for a record component.
- ConfigParseException - Exception in io.github.arthurhoch.kissconfig.exceptions
-
Thrown when a configuration source cannot be parsed.
- ConfigParseException(String, Throwable, String) - Constructor for exception io.github.arthurhoch.kissconfig.exceptions.ConfigParseException
-
Creates a parse exception.
- ConfigValue - Record Class in io.github.arthurhoch.kissconfig
-
One effective or loaded configuration value with source metadata.
- ConfigValue(String, String, String, String, ConfigLocationType, Path, Integer, boolean) - Constructor for record class io.github.arthurhoch.kissconfig.ConfigValue
-
Creates a config value.
- containsKey(String) - Method in class io.github.arthurhoch.kissconfig.ConfigMap
-
Returns true when the key exists after normalization.
D
- defaults() - Static method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Returns the default read order.
- DefaultValue - Annotation Interface in io.github.arthurhoch.kissconfig.annotations
-
Provides a string default value when no configuration value exists for a record component.
- displayValue() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value masked when secret.
E
- ENV_FILE - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Explicit env file path or builder-configured env file placeholder.
- envFile() - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a placeholder location for the env file configured on
KissConfigBuilder.envFile(String). - envFile(String) - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that treats the value as one explicit env file.
- envFile(String) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Configures env file loading.
- envFile(Path) - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that treats the value as one explicit env file.
- envFile(Path) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Configures env file loading.
- ENVIRONMENT_VARIABLES - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Operating-system environment variables from System.getenv().
- environmentVariables() - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location backed by operating-system environment variables.
- equals(Object) - Method in class io.github.arthurhoch.kissconfig.ConfigLocation
- equals(Object) - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Indicates whether some other object is "equal to" this one.
- explicit() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
explicitrecord component. - EXPLICIT_FILE - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Explicit single file path.
- EXPLICIT_PATH - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Explicit directory path.
- externalFirst() - Static method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Returns an external-first order designed for the default FILL_MISSING_ONLY merge strategy.
F
- FAIL_ON_DUPLICATE - Enum constant in enum class io.github.arthurhoch.kissconfig.MergeStrategy
-
Fail when a canonical key appears more than once.
- file(String) - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that treats the value as one explicit file.
- file(Path) - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that treats the value as one explicit file.
- FILL_MISSING_ONLY - Enum constant in enum class io.github.arthurhoch.kissconfig.MergeStrategy
-
Keep the first value for a canonical key.
G
- get(String) - Method in class io.github.arthurhoch.kissconfig.ConfigMap
-
Returns the string value for a key after normalizing the requested key.
- getValue(String) - Method in class io.github.arthurhoch.kissconfig.ConfigMap
-
Returns the full config value for a key after normalizing the requested key.
H
- hashCode() - Method in class io.github.arthurhoch.kissconfig.ConfigLocation
- hashCode() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns a hash code value for this object.
I
- ignoreMissingExplicitFiles(boolean) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Controls missing explicit file behavior.
- io.github.arthurhoch.kissconfig - package io.github.arthurhoch.kissconfig
- io.github.arthurhoch.kissconfig.annotations - package io.github.arthurhoch.kissconfig.annotations
- io.github.arthurhoch.kissconfig.exceptions - package io.github.arthurhoch.kissconfig.exceptions
- iterator() - Method in class io.github.arthurhoch.kissconfig.SearchOrder
J
- JAR_DIRECTORY - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Directory containing the running application JAR when available.
- jarDirectory() - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that reads from the directory containing the running application JAR when available.
K
- key() - Method in exception io.github.arthurhoch.kissconfig.exceptions.ConfigException
-
Returns the related key when available.
- KissConfig - Class in io.github.arthurhoch.kissconfig
-
Entry point for loading configuration into typed Java records.
- KissConfigBuilder - Class in io.github.arthurhoch.kissconfig
-
Builder for explicit KissConfig loading.
- KissConfigResult<T> - Record Class in io.github.arthurhoch.kissconfig
-
Result returned when callers need the mapped value and diagnostic report.
- KissConfigResult(T, ConfigMap, List<LoadedConfigSource>, String) - Constructor for record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Creates a result.
L
- lineNumber() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
lineNumberrecord component. - load(Class<T>) - Static method in class io.github.arthurhoch.kissconfig.KissConfig
-
Loads configuration into the target record type using default builder options.
- load(Class<T>) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Loads and maps configuration to the target record type, returning value, sources, map, and report.
- loaded() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
loadedrecord component. - LoadedConfigSource - Record Class in io.github.arthurhoch.kissconfig
-
Describes an attempted configuration source and whether it was loaded or skipped.
- LoadedConfigSource(String, ConfigLocationType, Path, boolean, boolean, boolean, int, String) - Constructor for record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Creates source metadata.
- locations() - Method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Returns locations in read order.
M
- mapTo(Class<T>) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Loads and maps configuration to the target record type, returning only the mapped value.
- mergeStrategy(MergeStrategy) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Sets the merge strategy.
- MergeStrategy - Enum Class in io.github.arthurhoch.kissconfig
-
Defines how values from later sources interact with values already loaded from earlier sources.
- message() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
messagerecord component.
N
- name() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
namerecord component. - none() - Static method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Returns an empty order.
O
- of(ConfigLocation...) - Static method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Creates a search order from the supplied locations.
- optional() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
optionalrecord component. - optionalLineNumber() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the optional line number.
- optionalPath() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the optional source path.
- optionalSourcePath() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the optional source path.
- OVERRIDE_EXISTING - Enum constant in enum class io.github.arthurhoch.kissconfig.MergeStrategy
-
Replace an existing value when a later source contains the same canonical key.
P
- path() - Method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Returns the configured path when this location has one.
- path() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
pathrecord component. - path(String) - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that treats the value as a directory.
- path(Path) - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that treats the value as a directory.
- production() - Static method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Returns a production-oriented external-first order.
- profile(String) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Sets the active profile.
- propertyFile(String) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Sets the property file name or path used by compatible locations.
- propertyFile(Path) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Sets the property file name or path used by compatible locations.
R
- rawKey() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
rawKeyrecord component. - report() - Method in record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Returns the value of the
reportrecord component. - Required - Annotation Interface in io.github.arthurhoch.kissconfig.annotations
-
Marks a configuration value as required even when the target type is nullable.
S
- safeValue() - Method in exception io.github.arthurhoch.kissconfig.exceptions.ConfigException
-
Returns the safe display value when available.
- searchOrder(SearchOrder) - Method in class io.github.arthurhoch.kissconfig.KissConfigBuilder
-
Sets the source search order.
- SearchOrder - Class in io.github.arthurhoch.kissconfig
-
Immutable read order for configuration locations.
- secret() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
secretrecord component. - Secret - Annotation Interface in io.github.arthurhoch.kissconfig.annotations
-
Marks a configuration value as secret so it is masked in reports and exceptions.
- source() - Method in exception io.github.arthurhoch.kissconfig.exceptions.ConfigException
-
Returns the related source when available.
- sourceName() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
sourceNamerecord component. - sourcePath() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
sourcePathrecord component. - sources() - Method in record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Returns the value of the
sourcesrecord component. - sourceType() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
sourceTyperecord component. - SYSTEM_PROPERTIES - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Java system properties from System.getProperties().
- systemProperties() - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location backed by Java system properties.
T
- targetType() - Method in exception io.github.arthurhoch.kissconfig.exceptions.ConfigException
-
Returns the target type when available.
- test() - Static method in class io.github.arthurhoch.kissconfig.SearchOrder
-
Returns a test-oriented order that reads the working directory before classpath resources.
- toString() - Method in class io.github.arthurhoch.kissconfig.ConfigLocation
- toString() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns a string representation of this record class.
- toString() - Method in class io.github.arthurhoch.kissconfig.SearchOrder
- type() - Method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Returns the location type.
- type() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
typerecord component.
V
- value() - Element in annotation interface io.github.arthurhoch.kissconfig.annotations.ConfigName
-
Returns the configured key name.
- value() - Element in annotation interface io.github.arthurhoch.kissconfig.annotations.DefaultValue
-
Returns the default string value.
- value() - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns the value of the
valuerecord component. - value() - Method in record class io.github.arthurhoch.kissconfig.KissConfigResult
-
Returns the value of the
valuerecord component. - valueCount() - Method in record class io.github.arthurhoch.kissconfig.LoadedConfigSource
-
Returns the value of the
valueCountrecord component. - valueOf(String) - Static method in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.arthurhoch.kissconfig.MergeStrategy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Method in class io.github.arthurhoch.kissconfig.ConfigMap
-
Returns the config values in deterministic key order.
- values() - Static method in enum class io.github.arthurhoch.kissconfig.MergeStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- valuesByKey() - Method in class io.github.arthurhoch.kissconfig.ConfigMap
-
Returns immutable values keyed by canonical key.
W
- withSecret(boolean) - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns this value with updated secret status.
- withSecretKeys(Set<String>) - Method in class io.github.arthurhoch.kissconfig.ConfigMap
-
Returns a copy with additional keys marked as secret.
- withValue(String) - Method in record class io.github.arthurhoch.kissconfig.ConfigValue
-
Returns this value with a different string value.
- WORKING_DIRECTORY - Enum constant in enum class io.github.arthurhoch.kissconfig.ConfigLocationType
-
Process working directory.
- workingDirectory() - Static method in class io.github.arthurhoch.kissconfig.ConfigLocation
-
Creates a location that reads from the process working directory.
All Classes and Interfaces|All Packages|Serialized Form