-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Annotate listener relations
PostPosted: Wed Jan 14, 2009 12:27 pm 
Newbie

Joined: Fri Nov 14, 2008 5:35 pm
Posts: 3
Hi,
I have a problem of how to persist listener relations. in a model that has versatile objects that fire events, and versatile objects that listen to those event, how can i persist all the relations?
my basic method for listening is to create a listener interface with the needed methods, and have any object who want to listen to implement it. the listenee holds a list of listeners.
when i load, i want these relations to be loaded too, but i don't know how to persist them. if interface-inheritance was supported, i could create a listenee interface and save them as unidirectional many-to-many. but interfaces are not supported.

anyone ever do such a thing?

Ehud


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.