sofa-ark icon indicating copy to clipboard operation
sofa-ark copied to clipboard

EventHandler 实现类要触发 handleEvent 方法,只能直接实现接口,中间不能有抽象类。

Open cxntsh opened this issue 1 year ago • 3 comments

Feature description

lQLPKH6kELeqNpXNAibNA2KwrEA_ead3i24GTnJi2fFYAA_866_550

可以看到判断逻辑,是直接通过反射判断是否是接口的实现类,这个可以优化一下,毕竟很多通用的逻辑还是要放到抽象类去实现的。

Additional notes

Add other notes if necessary.

cxntsh avatar Jun 12 '24 01:06 cxntsh

This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 15 '24 02:07 github-actions[bot]

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue or help wanted. Thank you for your contributions.

github-actions[bot] avatar Jul 23 '24 02:07 github-actions[bot]

可以的,欢迎提交 PR 优化呢

lvjing2 avatar Jul 23 '24 02:07 lvjing2