I have a situation and im trying to figure out why it is so. The scenario is I have a class A that implements an operation exposed by a webservice. For each request for the operation a new instance of A is created. The entire thing is manged by Spring internally and I am not sure how exactly the Class A in instantiated by the webservice.
Now i have a class variable whose value i want to inject during runtime through
@Value("${someValue}") String someVariable
someValue is defined a system property. But each of the beans created has someVariable as NULL.
I tried the same thing in another class annotated with @Configuration in the same package and it is resolving the variable fine.
So, Im thinking if the ability to inject through @Value depends on the way a bean is created like @Component, @Configuration-@Bean, XML definiti