Results 1 to 2 of 2

Thread: piintcut inside method

  1. #1

    Default piintcut inside method

    Hello,

    we are trying to adopt spring to our project now, we were going through the AOP and trying to use it for auditing , AOP supports to call a method before or after or after returning etc. calling a actual method.

    since we want to audit the flow it may require to update message in the audit log in between the method which is created at run time.

    Is there a way to introduce point cut in side a method and update the messages created at run time.

    hope I explained my concern clearly, can any body help me out here.

    Thanks

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    No there isn't... You cannot create a pointcut that operates halfway a method. (I suggest AspectJ in Action 2nd edition which is a great book).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •