Identifying Multiple Bean
Closed this issue · 1 comments
nirjon commented
Is it possible to identify which bean we are talking to when using BeanListener? For example, when we connect to multiple beans and use a single BeanListener - how do we know which Bean just got connected or disconnected etc..?
swstack commented
Hi @nirjon
Unfortunately there is no great way to connect to multiple beans using the same BeanListener
. I wrote a quick test that exercises this scenario which you can view in PR14. I think there might be some value in changing the API so that the Bean
context is passed through to the BeanListener
callbacks, but I will create a separate ticket for that.