Two instances of same class cannot produce any methods. (Event Bus otto)

62 Views Asked by At

I have encountered a situation where I have a class (let's call this class "A") with a @Produce method.

In another class, if I initialize two objects from class "A". Event bus throws an exception that the producer class is already registered.

Is there any workaround for this? because I want to @Produce some functionality but also cannot avoid instantiation of the same class twice.

0

There are 0 best solutions below