Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Get annotation value on field setting

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[quote Rifflard Mickaël::on 1/31/2005 10:58 AM]
| Hi,
|
| I try to retrieve an annotation value of a field during its setting.
|
| Exemple :
|
| 	public class MyClass {
|
| 		@MyAnnot(test)
| 		public String myField;
|
| 		public void myMethod() {
| 			...
| 			// Try to get myField annotation value here
| 			this.myField = "newValue";
| 			...
| 		}
| 	}
|
| How to obtain this information (test) without reflexion ?
|
| Thanks,
|
| Mickaël Rifflard
| (Atos Origin)
|
| _______________________________________________
| aspectj-users mailing list
| aspectj-users@xxxxxxxxxxx
| http://dev.eclipse.org/mailman/listinfo/aspectj-users
|

Afaik there is no other way around for this. You should obtain the annotation and than the values
you are interested in.

- --
:pope
[the_mindstorm]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFB/fqkTTDTje0R2dgRAsI5AJ9P2Pa2Ac8UjGvivWEOn3AnHAdR3QCgki0V
8sQOxHCJf0s686gbRD6q+fY=
=UHZE
-----END PGP SIGNATURE-----


Back to the top