Package org.citrusframework.util
Class PropertyUtils
java.lang.Object
org.citrusframework.util.PropertyUtils
Utility class supporting property replacement in template files.
For usage see doc generators and test case creator.
- Since:
- 2009
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigure(String name, Object component, org.citrusframework.spi.ReferenceResolver referenceResolver) Configure the given component with environment variables and system properties if present.static StringreplacePropertiesInString(String line, Properties properties) Replaces properties in string.static StringreplacePropertiesInString(String line, org.citrusframework.spi.Resource propertyResource) Replaces properties in string.
-
Field Details
-
BEAN_REF_PREFIX
- See Also:
-
CITRUS_COMPONENT_ENV_PREFIX
- See Also:
-
CITRUS_ENDPOINT_ENV_PREFIX
- See Also:
-
CITRUS_ENDPOINT_CONFIG_ENV_PREFIX
- See Also:
-
CITRUS_COMPONENT_PROPERTY_PREFIX
- See Also:
-
CITRUS_ENDPOINT_PROPERTY_PREFIX
- See Also:
-
-
Method Details
-
replacePropertiesInString
public static String replacePropertiesInString(String line, org.citrusframework.spi.Resource propertyResource) Replaces properties in string.- Parameters:
line-propertyResource-- Returns:
-
replacePropertiesInString
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.
-