-
Jan 27th, 2013, 01:31 AM
#1
Intercepting init-methods
Hello,
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
Surya
-
Jan 27th, 2013, 10:54 AM
#2
The only way to achieve this is to use loadtime or compile time weaving... With the default aop mechanism (proxies) that isn't possible...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules