But I want my aspects to use them, so I cannot remove them from the classpath.
2009/12/23 Michael McCray <[email protected]> > If you really don't want to allow code to use the annotation, you could > eliminate the classpath entry that provides it for the compilation of the > particular code. That may be too broad I imagine though, but how much more > would be affected? > > Mike > > > On Wed, Dec 23, 2009 at 7:03 AM, Victor Kirk <[email protected]>wrote: > >> Maybe you could use apt to report these warnings? >> >> >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Wim Deblauwe >> *Sent:* 23 December 2009 12:57 >> *To:* [email protected] >> *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 >> ______________________________________________________________________ >> >> _______________________________________________ >> aspectj-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/aspectj-users >> >> > > > -- > Michael D. McCray > Consultant - Technology Partners, Inc. > President - Object Nirvana, Inc. > Maker of > My People Database > - automation for what you do with your friends and family, and a place to > store your stories and information. > Website: http://www.mypeopledatabase.com/ > Transcendental Beans Database > - an aspect oriented database system, > the future of data storage > Website: http://www.objectnirvana.com > Open source version: http://transcendentalbeans.dev.java.net/ > Tweat Market - Twitter Dating Client > http://www.tweatmarket.com/ > Blog: http://aodbms.blogspot.com > Email: [email protected] > Twitter: http://twitter.com/seagullmike > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > >
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
