Jan 27th, 2013, 01:31 AM
Is there a way to advice init-methods in Spring?
For ex. I have a method initialize() which is a init-method configured in my applicationContext.xml.
When I directly invoke initialize() without init-method, am able to advice the same, but as soon as I add init-method, it ignores the advice. How to achieve this kind of advising?
Any thoughts would be really helpful.
Thanks & Regards
Jan 27th, 2013, 10:54 AM
The only way to achieve this is to use loadtime or compile time weaving... With the default aop mechanism (proxies) that isn't possible...