java: Make listener dispatch methods protected

This allows to add external changes to the listener dispatch logic.