[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] [aspect-users] Name of the class and staticinitialization
|
- From: Rifflard Mickaël <Mickael.Rifflard@xxxxxxxxxxxxxx>
- Date: Thu, 13 Jan 2005 18:48:23 +0100
- Delivered-to: aspectj-users@eclipse.org
- Thread-index: AcT5mBOkclMfKgl+T1evsrP6+8qfxg==
- Thread-topic: [aspectj-users] [aspect-users] Name of the class and staticinitialization
Hi,
I am trying to get the name of the class in advice associated with staticinitialization joinpoint.
I succeeded with this sample :
public class C {...}
public aspect A {
after() : staticinitialization(*) {
System.out.println("Class name : " + thisJoinPoint.getSignature().getDeclaringTypeName());
}
}
wich return
Class name : C
Is this the only method ?
Is this one is good from a performance point of view ?
Thanks,
Mickaël RIFFLARD
Atos Origin