title: How to set up init-method for a bean when spring is configured by annotation driven?
body: <p>I use spring roo to build project and it's annotation driven, and there is no bean definition in XML file. All the configuration info is in *.aj file.</p>
  
  <p>And now I want to set up an init method for a bean which don't have a default constructor (that bean is from the third party and it has a constructor with arguments, and I cannot remove them or give a default constructor to it.)</p>
  
  <p>Is there anyone who can tell me how to do this, please?</p>
  
  <p>The reason I want to do this is because I want to use <code>applicationContext.getBean("thatBeanName")</code> to dynamically get the bean and use it. Because the bean don't have a default constructor, I always get the error: <code>java.lang.NoSuchMethodException: com.to.that.bean.&lt;init&gt;()</code> and this is why I want to add the init-method to the bean.</p>