zhouhailin / freeswitch-externals

FreeSWITCH externals projects
https://zhouhailin.github.io/freeswitch-externals/
Apache License 2.0
163 stars 83 forks source link

Error when Autowired InboundClient on many EslEventHandler class #2

Closed anhlt309 closed 4 years ago

anhlt309 commented 4 years ago

I has 2 class implement EslEventHandler, that is HeartbeatEslEventHandler and ReScheduleEslEventHandler. On both that EslEventHandler's subclasses include code: @Autowired private InboundClient inboundClient;

So, after bean IEslEventListenerTemplate initialized, method afterPropertiesSet() got only one bean of subclass EslEventHandler.

zhouhailin commented 4 years ago

I can't find any errors in ReScheduleEslEventHandler, can you paste more detail error.

anhlt309 commented 4 years ago

You can use @Autowire InboundClient in more than one class of EslEventHandler, you'll see the problem, just one or two beans of EslEventHandler's subclasses inserted in handler table.

zhouhailin commented 4 years ago

If you have solved this problem, you can submit a pr. if you have not solved the problem, paste your example, because I can't reproduce it。