Jul 21st, 2011, 01:08 PM
How to inject dependency for a variable where value is coming from a property file?
Hi, I have to create a spring Bean like,
public class TestService implements ITestService
private ISomeOtherService someOtherService;
private String someProperty;
I want to initialize the value of attribute "someProperty" from a properties file. But i am not sure about the autowiring of the variable which will be read from the property file. Please suggest me possible solutions ? I don't was to use xml based bean wiring method.
Jul 21st, 2011, 01:18 PM
Jul 21st, 2011, 02:17 PM
Thanks Wesker. This is what i was looking for.
Tags for this Thread