[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] withincode question


I have question on withincode. Consider this:

public class Invoker
  public Object invoke( MyObject myObject )
    // code omitted to transform myObject to a Method object and the needed arguments

   return method.invoke( object, object[] );

I want to write a pointcut that matched with the method.invoke() call but only within the invoke method of the Invoker class. I tried this, but eclipse tells me that it does not match:

pointcut runAction():call( * Method.invoke(Object, Object[]) ) && withincode( * Invoker.invoke(*));

I also tried "within" in stead of "withincode", but it also does not work.