esbtools / event-handler

Notification in, document out.
GNU General Public License v3.0
3 stars 6 forks source link

Consider using NotificationFactory and DocumentEventFactory a bit differently #43

Open alechenninger opened 8 years ago

alechenninger commented 8 years ago

Right now they essentially just parse out a single serialized entity to a java implementation with business logic, and it is hard coded that this happens per entity name or canonical type. This is a natural pattern, however it would be more flexible to just pass a factory and let this decide how it gets you a notification or document event back, which allows for more parsing options other than just by entity name. This is occasionally useful, and either way probably results in cleaner code.

alechenninger commented 8 years ago

Also, MessageFactory current works as is being suggested here