How to get autowired beans in Helper class using Spring

Viewed 6904

I was wondering, what is the best way to get beans in helper classes since you cannot use @Autowired there. What I'm doing now is that I autowire in @Service/@Component/... and then pass that bean in constructor to the helper class. I don't think that it is the proper way of doing it since there might be too many things to pass.

What is the best way of doing this ?

4 Answers
Related