issue #3069: Using enum class for define Event type and EventListener type.
issue #3069: Updating EventDispatcherTest.