I have a Spring bean (singleton scope if it matters), lets call it FooService.
And I have an object Bar which is not managed by Spring but it want to use FooService.
How to implement this cooperation in the best way? (Let's assume that I don't like the solution with applicationContext.getBean()
).