JBoss.org Community Documentation
JBoss AOP provides an abstraction for resolving annotations. In future versions of JBoss AOP, there will be a way to override annotation values on a per thread basis, or via XML overrides, or even provide VM and cluster wide defaults for annotation values. Also if you want to write a truly generic advice that takes the base Invocation type, you can still get the annotation value of the method, constructor, or field you're invoking on by calling this method:
Object resolveAnnotation(Class annotation);
That's just resolving for resolving member annotations. If your aspect needs to resolve class level annotations then this method should be called:
Object resolveClassAnnotation(Class annotation)