[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] tracing static methods original caller.
|
- From: "Lei Lin" <linlei99@xxxxxxxxx>
- Date: Tue, 29 Apr 2008 21:29:07 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=nTJ3o10CHGGK9tuHoLSQucrfWv9ib6EkCWV8/mhGhBo=; b=MDGiaBvDj77j56flOEKZ96r1ZhRCRaf9HW5nKpvBuxNF2980vTi00jjI0mgVU9jxlabdqbwvVCw9wzW/kXwxZ3eW5ck07mt3cJFl2xS/BRx+8KI6dOQ3/4zxC9WDN1Bp8vKbaYmJOmakgJBKTv/afcdFE2zoSjhP/zSJD0QsEzg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Ni3zuV991EwNvilaP5fQgirFGO17GJgvshsCT1QtHmzUCD0g9pn79OWVO1X5NZRLyQyiYwzvNuT1byM/oPnr+1Hoij11VDyxEsnutaq/wAmoMcOneU9CxfywM7Sbam4712odGAYlXGGjQsQYEKV+4RGYkUGaLV/5w+/cjzA2rPo=
Hi,
I have a problem to trace the static methods original caller. Here is
the scenario
Class A has a instance method B, which invokes a static method D of
Class C. In the method D of C, invoke a static method F of Class E.
Code likes the below. I use aspect to capture method F calling or
execution. Assume that there are two instances (U and O) of Class A
calling the method B in a multi-threads environment. When the aspect
captures the method F calling, how can I tell which instance is
calling method B so that method F is called. Is there a way that I can
get the object instance of Class A? Thanks a lot.
Class A
{
methodB
{
C. methodD;
}
}
Class C
{
static methodD
{
E.methodF;
}
}
Class E
{
static methodF
{
.....;
}
}