Hi,
I'm new to AOP and have been trying to get a sample running to add an interceptor when the java.io.PrintStream print() method is called.
My jboss-aop.xml file contains this bind:
<bind pointcut="call(* java.io.PrintStream->print(java.lang.String)) AND within(HelloAOP)"> <interceptor class="HelloObjectInterceptor"/> </bind>
If you are not calling PrintStream directly, but a subclas, try using "$instanceof":
http://docs.jboss.org/aop/1.1/aspect-framework/examples/instanceof/instanceof.html