[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Using Aspectj to Access a Private Base
|
Thanks Russ, that answered my question.
Regards,
John
_____________________________________________
Hi John,
If you take a look at privileged (use the privileged
keyword in the main aspect declaration) then it should
be able to access private members.
Cheers,
Russ
On 16 Apr 2004, at 22:09, John Kelty wrote:
> Hi all,
>
> I am writing a subclass that derives from a public
> Apache Axis WSIF class.=A0 In one of the methods I
am
> overwriting, I need access to a private member
> variable of the Apache Axis base class.=A0 However,
> there is no getter method for that member variable,
so
> my derived class has no way to access this variable.
>
> I first tried to declare a getter method in the
> aspect, but that wouldn=92t compile because the
aspect
> didn=92t have visibility to the private field in
> question.
>
> What is the best way to use aspectj to define a
means
> for my derived class to get at the private variable
in
> the base class?
>
> Thanks in advance,
> John
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25ยข
http://photos.yahoo.com/ph/print_splash