avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@apache.org>
Subject Re: [AltRMI] Up Casing on client side now possible.
Date Sun, 21 Apr 2002 11:46:56 GMT
woohoo!

On Sun, 21 Apr 2002 21:27, Paul Hammant wrote:
> Folks,
>
> It is now possible in AltRMI to do up-casting on client side proxies if
> the publishing has been done right.  Consider....
>
>   interface A {
>      B getB()
>   }
>
>   interface B {
>     void doThing();
>   }
>
>   interface C extends B {
>     void doAnotherThing();
>   }
>
> If the implementation of A chooses to return a B instead of an A, the
> the client-side usage of that could cast it in the normal Java way...
>
>    A a = (A) lookup(...);
>    C c (C) a.getB();
>    c.doAnotherThing();
>
> - Paul

-- 
Cheers,

Peter Donald


--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message