Package org.citrusframework.variable
Class GlobalVariablesPropertyLoader
java.lang.Object
org.citrusframework.variable.GlobalVariablesPropertyLoader
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class GlobalVariablesPropertyLoader
extends Object
implements org.springframework.beans.factory.InitializingBean
Loads properties from an external property file and creates global test variables.
- Author:
- Christoph Deppisch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLoad the properties as variables.Get the property files.voidsetFunctionRegistry(FunctionRegistry functionRegistry) Set the function registry.voidsetGlobalVariables(GlobalVariables globalVariables) Set the global variables.voidsetPropertyFiles(List<String> propertyFiles) Set list of property files to be loaded
-
Field Details
-
BEAN_NAME
Bean name in Spring application context- See Also:
-
-
Constructor Details
-
GlobalVariablesPropertyLoader
public GlobalVariablesPropertyLoader()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()Load the properties as variables.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setPropertyFiles
Set list of property files to be loaded- Parameters:
propertyFiles-
-
getPropertyFiles
Get the property files.- Returns:
- the propertyFiles
-
setGlobalVariables
Set the global variables.- Parameters:
globalVariables- the globalVariables to set
-
setFunctionRegistry
Set the function registry.- Parameters:
functionRegistry- the functionRegistry to set
-