title: Is it possible to make a Spring ApplicationListener listen for 2 or more types of events?
body: <p>I've got 2 different types of events that I want my class to be able to listen for and process accordingly (and differently).  </p>
  
  <p>I tried:
  <code>public class ListenerClass implements ApplicationListener&lt;Foo&gt;, ApplicationListener&lt;Bar&gt;</code></p>
  
  <p>This gives me an error that you can't implement the same interface twice with different arguments.</p>
  
  <p>Short of implementing a listener for ApplicationEvent (or some other common interface that Foo and Bar would implement) and using <code>instanceof</code> to determine what path to take, do I have any other options?</p>
  
  <p>Thanks!</p>