Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Access to annotation values through reflection

Dear list,

As I understand it, all context that can be exposed via a pointcut, could just as well be accessed via the reflective API (i.e. thisJoinPoint etc). Is this equally true for annotations and annotation values using @this, @target, @annotation etc? I suppose you can get some of it using e.g.

thisJoinPoint.getClass().getAnnotations();

But is there also things one cannot get?

Thanks a lot,
Jon


Back to the top