|
From: Marcus W. <ma...@ph...> - 2005-01-22 17:25:31
|
Hey,
So, I have a question. How have events/listeners been implemented in
Axson, and would that implementation work well with CEP. Or should we
simply consider an observable interface that all overloading classes
would implement?
interface Observable {
function attach( Observer $observer);
function detach( Observer $observer);
function notify();
}
interface Observer {
function run( Observable $observable);
}
Is there something more elegant? should there be more ability to define
events? I'm still figuring it all out, but pretty fast so I'm ready to
put something in place ASAP.
Lemme know. Thanks.
- Marcus
|