This content has been marked as final.
Show 1 reply
-
1. Re: Interceptor for java.sql.PreparedStatement
bill.burke Oct 27, 2004 9:20 AM (in response to sushmam)Your pointcut expression is incorrect and will not match any methods on PreparedStatement.
It should be:<bind pointcut="call(* $instanceof{java.sql.PreparedStatement}->execute*(..))"> <interceptor class="com.apple.ist.rubyservice.aspects.SQLExecutionInterceptor"/> </bind>
This matches every execute method on PreparedStatement. You'll have to provide the full method pattern to do more fine-grained interception.
Bill