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 Andrew Clement::on 2/2/2005 6:37 PM]
| In case you haven't seen my post to aspectj-dev@xxxxxxxxxxx, annotation
| binding is now working in the dev codebase.
|
| So, this will work:
|
| before(MyAnnot mine) : set(String myField) && @annotation(mine) {
|       System.out.println(mine.value());
| }
|
| Current dev build is available from the AspectJ download page - an
| AJDT with it in is imminent.
|
| cheers,
| Andy.
|
|

Hi!

I have raised this question on ajdev ml too, but i haven't received an answer yet. Is there a way to
~ integrate (even manually) the latest AspectJ distro into an existing AJDT install?

(Eclipse 3.1M4, corresponding AJDT (January distro)).

tia,
- --
:alex
[the_mindstorm]

|
|
| Rifflard Mickaël <Mickael.Rifflard@xxxxxxxxxxxxxx>
| Sent by: aspectj-users-admin@xxxxxxxxxxx
| 31/01/2005 10:47
| Please respond to
| aspectj-users@xxxxxxxxxxx
|
|
| To
| <aspectj-users@xxxxxxxxxxx>
| cc
|
| Subject
| RE: [aspectj-users] Get annotation value on field setting
|
|
|
|
|
|
| Hi Wes,
|
| I like this solution.
| I wait with much impatience its implementation (M2 ?)
|
| Mickaël RIFFLARD
| (Atos Origin)
|
| -----Message d'origine-----
| De : aspectj-users-admin@xxxxxxxxxxx
| [mailto:aspectj-users-admin@xxxxxxxxxxx]De la part de Wes Isberg
| Envoyé : lundi 31 janvier 2005 11:37
| À : aspectj-users@xxxxxxxxxxx
| Objet : Re: [aspectj-users] Get annotation value on field setting
|
|
| The AspectJ 5 developer's notebook suggests this should work:
|
|   before(MyAnnot mine) : set(String myField)
|       && @annotation(mine) {
|       System.out.println("test.something=" + test.something());
|   }
|
| But binding is not implemented yet for annotations.
|
| Wes
|
|> ------------Original Message------------
|> From: Rifflard Mickaël <Mickael.Rifflard@xxxxxxxxxxxxxx>
|> To: aspectj-users@xxxxxxxxxxx
|> Date: Mon, Jan-31-2005 1:06 AM
|> Subject: [aspectj-users] Get annotation value on field setting
|>
|> 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
|>
|
|
| _______________________________________________
| aspectj-users mailing list
| aspectj-users@xxxxxxxxxxx
| http://dev.eclipse.org/mailman/listinfo/aspectj-users
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCAQL6TTDTje0R2dgRAgABAJ9lmn2pDFW1Dz1isD8m8PWwN2ZOuwCePNMm
dQyKOLjGghLHAqn8kbu4kXc=
=YiII
-----END PGP SIGNATURE-----


Back to the top