Skip to content

Conversation

vilasmaciel
Copy link
Contributor

No description provided.

vilasmaciel and others added 16 commits January 31, 2020 13:11
Description:

- DomainEventJsonDeserializer.

 Is in charge of converting a string event to a DomainEvent.

- DomainEventMapping

It is a collaborator of DomainEventJsonDeserializer. It has the
information about the relation between event types and DomainEvents in a
map. This map has been constructed dinamically (using the DI) calling
the subscribedTo method for the subscribers. So, it treats subscribers
as the source of truth.
________________________________________________________________________

There are more work to do in the next commits:

- Rethink the types, a huge amount of types with any right now
- DomainEvent is receiving the name as param in the constructor but
probably it won't be needed. That would allow to only declare an
abstract method that will be implemented in each DomainEvent.
Created the DomainEventClass to reflect that each DomainEvent
constructor has that type. To do that DomainEvent has been extended
with the static properties that will be accesed in each DomainEvent
class.
…izer

Part three domain event deserializer
@vilasmaciel vilasmaciel merged commit feb2c24 into master May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants