Class PropertyUtils

java.lang.Object
org.citrusframework.util.PropertyUtils

public final class PropertyUtils extends Object
Utility class supporting property replacement in template files. For usage see doc generators and test case creator.
Since:
2009
  • Field Details

  • Method Details

    • replacePropertiesInString

      public static String replacePropertiesInString(String line, org.citrusframework.spi.Resource propertyResource)
      Replaces properties in string.
      Parameters:
      line -
      propertyResource -
      Returns:
    • replacePropertiesInString

      public static String replacePropertiesInString(String line, Properties properties)
      Replaces properties in string.
      Parameters:
      line -
      properties -
      Returns:
    • configure

      public static void configure(String name, Object component, org.citrusframework.spi.ReferenceResolver referenceResolver)
      Configure the given component with environment variables and system properties if present. Supports settings on the component/endpoint itself and on the endpoint configuration.