Difference between spring setter and interface injection?
- by Satish Pandey
I know how constructor and setter injection works in spring.
Normally I use interfaces instead of classes to inject beans using setter and I consider it as interface injection, but in case of constructor we also use interfaces (I am confused). In following example I use JobProcessor interface instead of JobProcessorImpl class.
public class…