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
|