Announcement Announcement Module
No announcement yet.
How i can intercept protected methods? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How i can intercept protected methods?

    Hello, i need to intercept some protected methods of AbstractRememberMeServices class.

    How can explain me how i can intercept this type of methods? I see the spring aop documentation but dont find my answer.

    Thanks a lot

  • #2
    The note in section states.

    Due to the proxy-based nature of Spring's AOP framework, protected methods are by definition not intercepted, neither for JDK proxies (where this isn't applicable) nor for CGLIB proxies (where this is technically possible but not recommendable for AOP purposes). As a consequence, any given pointcut will be matched against public methods only!
    To intercept protected methods you need to use native AspectJ loadtime weaving.


    • #3
      thanks, i will explore it