Class JobContextParamsSetupFactory
- java.lang.Object
-
- org.ikasan.job.orchestration.configuration.JobContextParamsSetupFactory
-
@Configuration public class JobContextParamsSetupFactory extends java.lang.ObjectSetup parameters that may be required for the Context. The below is the property entry needed. job.context.mapping.configuration.location[ContextName1]=/location/file/test-context-1.properties job.context.mapping.configuration.location[ContextName2]=/location/file/test-context-2.properties The property contains the path to the location of where the file that contains the parameters are stored. The file is a key value pair property file, example of its contents: param1=value1 param2=value2
-
-
Constructor Summary
Constructors Constructor Description JobContextParamsSetupFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobContextParamsSetupConfigurationjobContextParamsSetupConfiguration()Reads from the properties file a List of location where the individual context configuration are stored.
-
-
-
Method Detail
-
jobContextParamsSetupConfiguration
@Bean @ConfigurationProperties(prefix="job.context.mapping.configuration", ignoreUnknownFields=true) public JobContextParamsSetupConfiguration jobContextParamsSetupConfiguration()Reads from the properties file a List of location where the individual context configuration are stored. Expecting to see the below in the property file. job.context.mapping.configuration.location[ContextName1]=/location/file/test-context-1.properties job.context.mapping.configuration.location[ContextName2]=/location/file/test-context-2.properties Once object is returned, you can use getParamsToReplace to get the required values, for example for ContextName1 { ContextName1 : { param1=value2, param2=value2 } }- Returns:
- JobContextParamsSetupConfiguration
-
-