« Return to Thread: point cut on:: Annotated field + new ArrayList()

Re: point cut on:: Annotated field + new ArrayList()

by Andy Clement :: Rate this Message:

Reply to Author | View in Thread

Here is a working solution:

public aspect INAspect {

    pointcut listCut(ArrayList value, LIST in ) : set(@LIST * * ) && args(value) && @annotation(in);

    void around(ArrayList value, LIST in) :listCut(value,in) {
        System.out.println("**annotation " + thisJoinPoint + " ann:" + in.value());
        proceed(new MyList(),in);
    }

}

_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

 « Return to Thread: point cut on:: Annotated field + new ArrayList()