Dynamic value to Spring Property Ref tag

783 Views Asked by At

Any way is it possible to pass dynamic value to the ref tag attribute in below code from java?

<bean id="jobLauncherTestUtils" class="org.springframework.batch.test.JobLauncherTestUtils" >
        <property name="job" ref="$(dynamicValue)"/>
        <property name="jobLauncher" ref="jobLauncher"/>
         <property name="jobRepository" ref="jobRepository" />
    </bean>

`

1

There are 1 best solutions below

0
On BEST ANSWER

You can load them from a file of properties

If the value should be changed at runtime you must build and launch at runtime.