Class PropertyParser
java.lang.Object
io.github.blyznytsiaorg.bibernate.utils.PropertyParser
Utility class for parsing properties, including resolving environment variables.
This class provides methods to process property values, especially those containing environment variable references.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
getEnvValue
(String propertyValue) Retrieves the value of the environment variable specified in the property value.static String
processProperty
(String propertyValue) Processes the provided property value, resolving environment variables if needed.
-
Field Details
-
PATTERN
- See Also:
-
PREFIX
- See Also:
-
COMPILE_PARAM
-
FORMATTED_MESSAGE
- See Also:
-
-
Constructor Details
-
PropertyParser
public PropertyParser()
-
-
Method Details
-
processProperty
Processes the provided property value, resolving environment variables if needed.- Parameters:
propertyValue
- the property value to process- Returns:
- the processed property value
-
getEnvValue
Retrieves the value of the environment variable specified in the property value.- Parameters:
propertyValue
- the property value containing the environment variable reference- Returns:
- the value of the resolved environment variable
- Throws:
FailedToMatchPropertyException
- if the property value does not match the expected pattern
-