Thread View: borland.public.jbuilder.java.api
5 messages
5 total messages
Started by Erica Wheatcroft
Fri, 07 Jan 2005 19:13
Observer/Observable Design Pattern
Author: Erica Wheatcroft
Date: Fri, 07 Jan 2005 19:13
Date: Fri, 07 Jan 2005 19:13
12 lines
1282 bytes
1282 bytes
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
Re: Observer/Observable Design Pattern
Author: Lori M Olson [TeamB]
Date: Fri, 07 Jan 2005 20:25
Date: Fri, 07 Jan 2005 20:25
26 lines
2020 bytes
2020 bytes
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. -- Regards, Lori Olson [TeamB]
Re: Observer/Observable Design Pattern
Author: Jeroen Wenting
Date: Sun, 13 Feb 2005 06:11
Date: Sun, 13 Feb 2005 06:11
30 lines
1941 bytes
1941 bytes
"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?
Re: Observer/Observable Design Pattern
Author: Erica Wheatcroft
Date: Mon, 21 Feb 2005 21:56
Date: Mon, 21 Feb 2005 21:56
42 lines
2435 bytes
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? > > >
Re: Observer/Observable Design Pattern
Author: Lori M Olson [TeamB]
Date: Tue, 22 Feb 2005 15:22
Date: Tue, 22 Feb 2005 15:22
40 lines
2258 bytes
2258 bytes
Erica Wheatcroft wrote:
> 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...
>
>>
>>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?
>>
>>
>>
Google search: proxy +pattern +jni
http://www.cs.technion.ac.il/~gabr/papers/cuj_jni.pdf
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads