title: Make ServletContextListener spring aware
body: <p>I am plugging in Spring to existing Java EE web Application. I have following lines in my web.xml:</p>
  
  <pre><code>&lt;listener&gt;
      &lt;listener-class&gt;com.MyContextListener&lt;/listener-class&gt;
  &lt;/listener&gt; 
  </code></pre>
  
  <p>And Following <code>MyContextListener</code> class?</p>
  
  <pre><code>public class MyContextListener implements ServletContextListener {
  
      public void contextInitialized(ServletContextEvent event) {
         //...
      }
  }
  </code></pre>
  
  <p>What should I do to make <code>MyContextListener</code> be managed by Spring?</p>
  
  <hr>
  
  <p><strong>Edited:</strong></p>
  
  <p>My assumption is: Spring should create all servlets and all web app infrastructure so everything happened in <code>contextInitialized</code> method of <code>MyContextListener</code> should be somehow handled by Spring. How can I achieve, by implementing some interface I suppose. Correct me if I am wrong. Thanks!    </p>