Class FluxzeroAdditionalPropertiesSource
java.lang.Object
io.fluxzero.common.application.JavaPropertiesSource
io.fluxzero.common.application.FluxzeroAdditionalPropertiesSource
- All Implemented Interfaces:
PropertySource
A
PropertySource that loads extra configuration from locations declared through
"FLUXZERO_CONFIG_LOCATIONS".
The property can be set as an environment variable or JVM system property. Multiple locations can be separated with
commas. Supported locations are file:/path/to/config.properties, plain file paths, and
classpath:config.properties. Prefix a location with optional: to ignore it when it does not exist.
Later locations override earlier locations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEnvironment variable or system property that points to extra Fluxzero configuration locations.static final StringLower-case system property alias forCONFIG_LOCATIONS_PROPERTY.Fields inherited from interface PropertySource
substitutionPattern -
Constructor Summary
ConstructorsConstructorDescriptionCreates a source backed by the configured additional locations. -
Method Summary
Methods inherited from class JavaPropertiesSource
getMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertySource
andThen, containsProperty, get, getBoolean, getBoolean, getInteger, getInteger, require, substituteProperties, substituteProperties
-
Field Details
-
CONFIG_LOCATIONS_PROPERTY
Environment variable or system property that points to extra Fluxzero configuration locations.- See Also:
-
CONFIG_LOCATIONS_PROPERTY_ALIAS
Lower-case system property alias forCONFIG_LOCATIONS_PROPERTY.- See Also:
-
-
Constructor Details
-
FluxzeroAdditionalPropertiesSource
public FluxzeroAdditionalPropertiesSource()Creates a source backed by the configured additional locations.
-