Mar 14th, 2013, 06:12 AM
piintcut inside method
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.
Mar 14th, 2013, 10:29 AM
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).