Questions/Problems with Event Listener

I have questions and problems with the event listener.

I have implemented the text to link conversion in an event listener using Wiki Component. After it has been tested, I have changed the name for “Component Role Hint” and getName. Then weird behaviors happened. When I tried to change the code, it just worked as the old code, not the new code.

My doubt is that the old event listener is still active and not unregistered automatically, after I changed the name. If that is the case, how can I register/unregister an event listener in a simple and clean way. Would this tool https://extensions.xwiki.org/xwiki/bin/view/Extension/Event%20Listeners%20Administration/ be helpful?

Thank you in advance

Update:

Renaming a Listener realised as a Wiki Component really seems to lead to trouble.

We installed Event Listener Administration in which one can see that there’s only one Listener after an Xwiki restart, but after renaming the Listener, we get two active Listeners - the old one under the old name, and the Listener with the new name.

Using the Event Listener Administration the old one can be disabled, but in my opinion the old implementation should not exist any more at all in the first place. Otherwise, it cannot be managed any more through the Wiki Component page which originally defined / created it.

I’ll report this as a Bug.

https://jira.xwiki.org/browse/XWIKI-21795