Invoking spark listener implementation in data hooks