How can I get access to spring container?
- by Antony
I have a spring container running, and I have class with which I want to have access to the bean created inside spring container. The class I have is not registered with the spring container.
One thing I can do is that I can use MethodInvoker to call a static method, so I will have access to static field (this would be a bean from spring container) in my class always.
Do we have class like WebapplicationContextUtils for a application that is not web?