[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Name of the class and staticinitialization
|
Hi Peter,
I had not seen that the method getSignature was available on thisJoinPointStaticPart.
Thanks,
Mickaël RIFFLARD
Atos Origin
-----Message d'origine-----
De : aspectj-users-admin@xxxxxxxxxxx
[mailto:aspectj-users-admin@xxxxxxxxxxx]De la part de v_peter
Envoyé : vendredi 14 janvier 2005 11:38
À : aspectj-users@xxxxxxxxxxx
Objet : Re: [aspectj-users] Name of the class and staticinitialization
Hello, Rifflard.
You can use also "thisJoinPointStaticPart" instead of "thisJoinPoint"
On Jan 13, 2005, 19:48:23, you wrote:
> 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
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
--
Best regards,
v_peter
v_peter@xxxxxxx
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users