Thursday, August 19, 2004

Plain Old Java Aspect

(imported from http://blogs.codehaus.org/people/avasseur, read comments there)

Back from hollydays, and back to work.

It's time to work on those Plain Old Java Aspects (POJA).
Java 5 Annotations are now so old, in the place since 1.5...


public class Poja {

@Around("execution(* *..*(String message)) AND within(silly.dot.com.at.work.*)")
public Object intercept(JoinPoint jp, String message) {
...
}

}