更新时间:2023-02-04 17:00:35
我不太了解你的情况。依托在听众被称为顺序似乎有点冒险。
I don't quite understand your situation. Relying on the order in which listeners are called seems a little bit dodgy to me.
难道你们就不能只是创建当你的事件发生,其检测的关键监听器包装类,比代表适当如果该事件对包装监听器类(ES)?
Can you not just create a key listener wrapper class which detects when your event happens, and if appropriate than delegates the event to the wrapped listener class(es)?
我觉得有你想达到不依赖于监听器排序,除非我误解了什么东西实现更好的方法!
I think there are better ways of achieving what you want to achieve without relying on listener ordering, unless I have misunderstood something!