On Tue, Sep 29, 2009 at 10:06 AM, Rickard Öberg <[email protected]> wrote:

> Right now the statistics service in StreamFlow listens for events, and when
> trigger events come in (i.e. "task completed") the service reads state from
> the model, and persists it in a denormalized database for reporting. If I
> understand you correctly you want to not allow the statistics service to
> access the domain model. But, then something else needs to know what data
> the service needs, and package it up, right? What is the gain by that? Or am
> I missing something?

I thought the Event would carry all data associated with that event at
that point in time. That way the 'sender' creates the event with all
data it knows of, and the recipient is responsible to understand what
is relevant. That way there is not necessarily any read access to the
domain model.

Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to