title: Is it recommended to use the Spring's predefined InitializingBean and DisposableBean callbacks or not?
body: <p>Is it recommended to use the Spring's predefined <code>InitializingBean</code> and <code>DisposableBean</code> callbacks or own <code>init-method</code> and <code>destroy-method</code> for <code>initialization</code> and <code>cleanup</code>.</p>
  
  <p>I just started learning <strong>Spring Framework</strong> and I confused with the follwing statements that,</p>
  
  <ol>
  <li><p>It is recommended that you <strong>do not use</strong> the InitializingBean or DisposableBean callbacks, because XML configuration gives much flexibility in terms of naming your method. (From a Tutorial Blog)</p></li>
  <li><p>It is recommended to <strong>use</strong> Spring's predefined InitializingBean or DisposableBean callbacks. (From my Tutor)</p></li>
  </ol>
  
  <p>Are both valid based on the scenario?</p>