inaka / sumo_db

Erlang Persistency Framework
http://inaka.github.io/sumo_db/
Apache License 2.0
174 stars 37 forks source link

Move event dispatcher management inside #218

Closed elbrujohalcon closed 8 years ago

elbrujohalcon commented 8 years ago

Up to this point, if a user wants to listen to events from sumo activities, it has to provide its own gen_event dispatcher. It would be a much better idea to just add a sumo_events_sup supervisor with a one_for_one strategy that basically boots up a gen_event dispatcher per each dispatcher listed on the events section of the app configuration.