Skip to main content

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



Back to the top