Class PropertyParser

java.lang.Object
io.github.blyznytsiaorg.bibernate.utils.PropertyParser

public class PropertyParser extends Object
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 Details

  • Constructor Details

    • PropertyParser

      public PropertyParser()
  • Method Details

    • processProperty

      public static String processProperty(String propertyValue)
      Processes the provided property value, resolving environment variables if needed.
      Parameters:
      propertyValue - the property value to process
      Returns:
      the processed property value
    • getEnvValue

      private static String getEnvValue(String propertyValue)
      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