Announcement Announcement Module
Collapse
No announcement yet.
Intercepting init-methods Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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...

    Comment

    Working...
    X