[Opensource] How can i create Listener Objects for DBObject?
Gaspar Gonzalez Oliva
gaspar at borderlessgroup.com
Wed Jul 9 20:34:39 PDT 2003
Hi Mike,
Thanks for your answer but i need to explain more what i need to
do and i want that u give me some advice in what is the best way
to do.
I need to implement an object that must Listening what happened
with any DBObject, for example:
Suppose that i need to Listening ForumMail DBObject and i have
already an instance of it. How can you implement a object that
listening for any add/update/delete on this DBObject?. I need
to do this because when a DBObject made this operation i need
to do something more in other object.
If u know any code where i can take a look,
please specify me where.
Thanks in advance,
Gaspar
----- Original Message -----
From: "Michael Rimov" <rimovm at centercomp.com>
To: <opensource at jcorporate.com>
Sent: Wednesday, July 09, 2003 6:42 PM
Subject: Re: [Opensource] How can i create Listener Objects for DBObject?
> At 11:25 AM 7/9/2003 -0400, you wrote:
>
> >Hi,
> >
> >I see that Expresso 5.0.4 have a DBObject method called
> ><addCacheEventListener>, but is
> >marked deprecated, that let us register another object to "listening"
> >(updates/adds/deletes) to this DBObject. This method is deprecated, my
> >question is:
> >
> >1-What another option i have to do this, "listening"?. is the
> ><notifyListeners>
> >method, the solution?.
> >2-Since what version of Expresso it is deprecated?
>
> You register a listener with CacheManager instead of DBObject. I don't
> remember when it was deprecated, sorry. [I can't even remember if I was
> the one that deprecated it :) ]
>
> -Mike
>
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
>
More information about the Opensource
mailing list