title: Define a destroy-method in annotation-based bean?
body: <p>I'm looking for a way to tell spring which method on an annotation-based bean it should call when it's destryoing that bean.</p>
  
  <p>What I'm actually trying to achieve is, to be notified when a session-scoped bean is destroyed in order to persist some stuff from that session.</p>