Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Context passing

Can anyone explain me an example from the AspectJ Programming Guide.

aspect ColorControl {

    pointcut CCClientCflow(ColorControllingClient client): cflow(call(* * (..)) && target(client));

    pointcut make(): call(FigureElement Figure.make*(..));

    after (ColorControllingClient c) returning (FigureElement fe): make() && CCClientCflow(c) {
        fe.setColor(c.colorFor(fe));
    }
}

Please, give an example of using this aspect.

View this message in context: Context passing
Sent from the AspectJ - users mailing list archive at Nabble.com.

Back to the top