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

  • Local methods problem

    Hi Guys,

    I'm new to AOP and AspectJ and I have the problem that I cannot intercept the joinpoints from a local inner class.

    I want to intercept all methods of a parent class and it's subclasses and also the methods of inner local classes that may occur in this methods.

    Is this possible?

    Thanks,
    Cristian.

  • #2
    Originally posted by hipjim View Post
    Hi Guys,

    I'm new to AOP and AspectJ and I have the problem that I cannot intercept the joinpoints from a local inner class.

    I want to intercept all methods of a parent class and it's subclasses and also the methods of inner local classes that may occur in this methods.

    Is this possible?

    Thanks,
    Cristian.
    Read the documentation, chapter 6 deals with AOP. Spring AOP can only intercept calls outside the proxy to the proxied object, not internal calls to methods and classes inside the same object. For that you need AspectJ. It's all in the documentation...

    Comment

    Working...
    X