On Tue, Jul 28, 2009 at 3:14 PM, Rickard Öberg<[email protected]> wrote:
> Edward Yakop wrote:
>>>
>>>   @Event
>>>   OrganizationalUnit organizationalUnitCreated(CreatedEvent event);
>>
>> Can this is defined in private mixin? and,
>> how do u order the event handler execution?
>
> Not sure if this can be done in a private mixin, since during replay the
> external service that does the replay must be able to call them. Also, if
> they are in a private mixin that means that you have to declare essentially
> two mixins for everything you need to do: the command mixin and the event
> mixin. Might be overkill.

I don't think it is an overkill. GutFeeling(tm) says that the @Event
method will be on the domain model, i.e. the State mixins, in simpler
cases where a separate EventMixin is not warranted.

I agree however that 'reaching' those methods for the playback is a
challenge, but I thought we found a solution already present.


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