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, Ganesh.

On Jan 14, 2005, 13:50:46, you wrote:

> You should find that any vaguely recent AspectJ compiler will translate
> uses of thisJoinPoint to thisJoinPointStaticPart where possible. If you
> notice a performance difference making the optimisation manually, it's
> probably a bug in that translation.

No I will not notice it. I was based on documentation of 1.2.1.


> Cheers,

> Ganesh

> On Fri, 14 Jan 2005, v_peter wrote:

>> Hello, Rifflard,
>>
>> The variable "thisJoinPointStaticPart" represents the helper object of
>> "org.aspectj.lang.JoinPoint.StaticPart". It contains static
>> information about your join point and gives some performanse
>> improvements as compared with using "thisJoinPoint" because the
>> "thisJoinPoint" is created in run-time.
>> thisJoinPoint.getSignature() ==
>> thisJoinPointStaticPart.getSignature()
>>
>> On Jan 14, 2005, 12:48:45, you wrote:
>>
>> > 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
>>
>>
>>

> _______________________________________________
> 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