title: How can I get access to spring container?
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>Do we have class like WebapplicationContextUtils for a application that is not web?</p>