Create a new event listener. Append it to the event listener group using a duplication strategy with REPLACE_ORIGINAL. The (CallbackRegistryConsumer/JpaBootstrapSensitive) injections are not performed on the listener. This can lead to NullPointerException when the listener is invoked (for example for a listener which is a CallbackRegistryConsumer, as the callbackRegistry field is not set). (Note that the injections are performed if the listener is prepended or appended with no duplication strategy). |