[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
Re: [aspectj-dev] staticinitializer
|
- From: Wes Isberg <wes@xxxxxxxxxxxxxx>
- Date: Wed, 05 Feb 2003 10:57:15 -0800
- Delivered-to: aspectj-dev@eclipse.org
This is a good question for aspectj-users@xxxxxxxxxxx
Wes
Jake Whitehill wrote:
>
> Hi,
>
> I'm trying to implement the following:
>
> I have three classes A, B, and C. In all three classes the static variable
> x appears. I want to use advice to write static-initializer code for A, B,
> and C which initializes the value of x to some class-dependent value. For
> instance, I'd really like to have:
>
> A.x = "A", B.x = "B", and C.x = "C"
>
> But I don't know how to refer to the actual class being initialized from
> within the static initializer.
>
> Any suggestions?
>
> Thanks
> Jake
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-dev