Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Force only aspects to attach JMX annotations

Maybe you could use apt to report these warnings?

 

From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Wim Deblauwe
Sent: 23 December 2009 12:57
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Force only aspects to attach JMX annotations

 

Hi,

In our codebase, we use the spring @ManagedResource annotation to expose things via JMX. Sometimes, this is put on the class directly and sometimes it is done via an aspect. Would it be possible to declare a warning when this is done on the class directly. I would like to force that everything is done via an aspect.
Is it possible to know that the @ManagedResource annotation was introduced via an aspect?

When do the declare warning statements happen? Is this after the declare @type statements? Note that we are talking about 2 different aspects (1 architectural aspect that enforces and 1 aspect per service that I want to expose over JMX), so maybe the correct precedence might help?

regards,

Wim



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


Back to the top