[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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