I would like to know if there is a way in AspectJ to declare an aspect per each thread, and also if there is a way to declare an aspect per team of threads?
By team of threads I am referring to this example:
A given thread 'X' creates 'N' new threads, then 'X' is the master of this team, if a given thread 'Y' within this team also creates by them self a new team, 'Y' will became the master of this new team. So I would like to know if I can declare an aspect 'A' to the team produce by the thread 'X' and a different "instance" of the aspect 'A' for the team 'Y'.