Package io.datarouter.storage.config
Class ComputedPropertiesFinder
java.lang.Object
io.datarouter.storage.config.ComputedPropertiesFinder
@Singleton public class ComputedPropertiesFinder extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComputedPropertiesFinder.FallbackPropertyValueSupplierDto -
Field Summary
Fields Modifier and Type Field Description static StringSERVER_CONFIG_FILE_NAME -
Constructor Summary
Constructors Constructor Description ComputedPropertiesFinder() -
Method Summary
Modifier and Type Method Description StringfindConfigFileLocation(String filename, boolean fileRequired)StringfindProperty(String propertyName)StringfindProperty(String propertyName, Supplier<String> defaultValue)StringfindProperty(String propertyName, Supplier<String> defaultValueSupplier, String defaultSource)StringfindProperty(String propertyName, List<ComputedPropertiesFinder.FallbackPropertyValueSupplierDto> defaultValueSupplierDtos)List<String>findPropertyStringsSplitWithComma(String propertyName)StringvalidateConfigDirectory(String configDirectory, boolean directoryRequired, boolean directoryFromJvmArg)
-
Field Details
-
SERVER_CONFIG_FILE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ComputedPropertiesFinder
public ComputedPropertiesFinder()
-
-
Method Details
-
validateConfigDirectory
-
findConfigFileLocation
-
findProperty
-
findProperty
-
findProperty
-
findProperty
public String findProperty(String propertyName, List<ComputedPropertiesFinder.FallbackPropertyValueSupplierDto> defaultValueSupplierDtos) -
findPropertyStringsSplitWithComma
-