[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Is this possible with AspectJ?

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

Hi, Robert.

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.

Eric

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?
>
> Regards,
>
> Robert
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users



- --
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQm/rIcwiFCm7RlWCEQIsPQCgipqiJrAgo4pl1syZvmXnz+usEKoAn06I
VZFqw/vmX6e9PlRzJ7+Ek/Eb
=gvm7
-----END PGP SIGNATURE-----