Skip to content

Conversation

vilasmaciel
Copy link
Contributor

No description provided.

davidmatas and others added 3 commits April 12, 2020 17:58
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.
@vilasmaciel vilasmaciel merged commit ce78761 into part_three May 19, 2020
@vilasmaciel vilasmaciel deleted the part_three_domain_event_deserializer branch November 25, 2020 15:03
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.

2 participants