🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #50

Re: Observer/Observable Design Pattern

#50
From: Erica Wheatcroft
Date: Mon, 21 Feb 2005 21:56
42 lines
2435 bytes
Hmm. A Proxy? Can you point me to some more info?

Thanks.. and never to late..

Erica
"Jeroen Wenting" <jwenting@hornet.demon.nl> wrote in message 
news:420eef01$2@newsgroups.borland.com...
>
> "Lori M Olson [TeamB]" <javadragon@techie.com> wrote in message
> news:41def046$1@newsgroups.borland.com...
>> Erica Wheatcroft wrote:
>> > Hi -
>> >
>> > I have a design problem and am looking for input.
>> >
>> > I have a a java app that uses JNI to communicate with a c++ dll. 
>> > However
> i
>> > would like to implement a observer/observable design between the two 
>> > and
> i'm
>> > not sure how i would fire "an event" from c++ to java.
>> >
>> > Can anyone point me to some further reading that would help me?
>> >
>> > Thanks in advance..
>> > Erica
>> >
>> >
>>
>> Well, I have 2 JNI books, and neither of them covers this topic
>> specifically.  The closest either comes is the "Essential JNI" book,
>> with it's coverage of exception throwing and thread handling.  Reading
>> those 2 chapters carefully, you might be able to come up with some ideas.
>>
>
> Maybe a bit late :) but doesn't this call for a proxy pattern?
> Create a full Java proxy for the JNI operation which is itself the
> observable and fires the event when the JNI operation has completed?
>
>
> 
Technical Details
Message-ID: <421a5900$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!xmission!nntp.cifnet.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41dedf57@newsgroups.borland.com> <41def046$1@newsgroups.borland.com> <420eef01$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,3c4a4c5df3d88720
X-Google-Attributes: gid1089d0,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Erica Wheatcroft" <erica.wheatcroft@gmail.com>
From: "Erica Wheatcroft" <erica.wheatcroft@gmail.com>
Newsgroups: borland.public.jbuilder.java.api
References: <41dedf57@newsgroups.borland.com> <41def046$1@newsgroups.borland.com> <420eef01$2@newsgroups.borland.com>
Subject: Re: Observer/Observable Design Pattern
Date: Mon, 21 Feb 2005 15:56:16 -0600
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 206.127.28.194
Message-ID: <421a5900$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109022976 206.127.28.194 (21 Feb 2005 13:56:16 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!xmission!nntp.cifnet.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail