[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] point cut on:: Annotated field + new ArrayList()

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);
    }

}