[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [aspectj-users] Is this possible with AspectJ?
- From: Eric Bodden <eric@xxxxxxxxx>
- Date: Wed, 27 Apr 2005 21:42:26 +0200
- Delivered-to: firstname.lastname@example.org
- Organization: RWTH Aachen University
- Thread-index: AcVLSCuIzDRLIL3GT62On56f9p+D6QAGNsEA
-----BEGIN PGP SIGNED MESSAGE-----
If your annotations have "runtime visible" retention, then you can
inspect a class using reflection, when it is loaded (using the
staticinitilization pointcut). This should give you what you want. I
am pretty much sure, there is no other way.
Robert Burén wrote:
> Hi all!
> Is it possible to, during runtime, iterate through all objects
> affected by a certain pointcut?
> I want to manage classes in an action framework where action
> classes are flagged with an annotation. I can, of course, match all
> classes flagged in this way, but I can't find a way to enumerate
> them (so
> that I can put them in a HashMap during startup). Can this be done
> at all?
> aspectj-users mailing list
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
-----END PGP SIGNATURE-----