Java 8 and Spring 4 : Use autowiring in interface
This is a bit tricky but it works if you need the dependency inside the interface for whatever requirement. The idea would be to declare a method that will force the implemented class to provide that dependency you want to autowire. The bad side of this approach is that if you want to provide too … Read more