Add facility to invoke callbacks when an object receives a particular event