[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Use of the keyword THIS to access the name of the class for which the aspect is executing
|
Check out thisJoinPointStaticPart.getClass().
Regards,
Bora.
On 10/31/07, Jubin Zawar <Jubin.Zawar@xxxxxxxxxxxxxxx> wrote:
>
>
>
>
> Hi,
>
>
>
> I am verifying preconditions using AspectJ.
>
> For this I create an aspect called PrePostConditions, it includes an
> around() advice for a service class. Whenever a method of this class is
> invoked, the Aspect comes into play.
>
>
>
> Now – for a ceratin reason – I have to have access to the class' name within
> the Aspect.
>
> However, when using the "this" keyword, it refers to the aspect and not the
> class that the class advises to.
>
>
>
> How can I et access to the class' name or a reference to class for which the
> advice executes ?
>
>
>
> Kind regards,
>
>
>
> Jay
>
>
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>