Hi
I want to log all the method arguments when any public method fails with an afterthrowing advice. How do I make the following generic so that I do not need a pointcut for methods with 1 argument, methods with 2, etc.:
Code:<aop:config > <aop:aspect id="legacyDaoExceptionTranslator" ref="exceptionLogger"> <aop:after-throwing method="doLogErrors" pointcut="execution(public * com..FeedProcessor.*(..)) and args(modelId,..)" throwing="ex"/> </aop:aspect> <aop:aspect id="legacyDaoExceptionTranslator2" ref="exceptionLogger"> <aop:after-throwing method="doLogErrors2" pointcut="execution(public * com..FeedProcessor.*(..)) and args(modelId,modelId2,..)" throwing="ex"/> </aop:aspect> </aop:config>


Reply With Quote