Re: [aspectwerkz-user] obtaining the field type from a join point

Alexandru Popescu <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[quote Matt Ho::on 4/4/2005 5:09 AM]
> Suppose I have the following class
> 
> public class Foo {
>   @TaggedField private Bar bar;
> }
> 
> How would I write an advise so I could figure out the
> type of field that I'm advising?  In this case, Bar. 
> What I'm trying to do is write a PicoContainer like
> dependency injector using AspectWerkz.  
> 
> I have seen any references to this so far on the docs
> or on the mailing list.  Any thoughts on how this
> could be done?
> 
> M
> 
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Personals - Better first dates. More second dates. 
> http://personals.yahoo.com
> 
> 
I am not sure I get your question. One thing I can think of is:

set|get(@TaggedField * *..*.*) (restricted maybe to your packages).

public void someAdvice(JointPoint jp) or public void someAdvice(StaticJoinPoint sjp) {
}

from JoinPoint/StaticJoinPoint you can extract the info you need.


Another option would be to use args.

- --
:alex |.::the_mindstorm::.|


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

iD8DBQFCUPt0OCPjdDT2FEURAhGpAKC9JTT8rXG6HR88W0wyy7PkFuWulwCgpGGY
e7ueIZAp3M6nqLCJ1nfRLFY=
=5E0Q
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.