Hey, didn't want this to get zero responses.

I attempted to design a generic ListenerManager that could be used to manage 
listeners
for any interface. There are definitely a few drawbacks (which I listed in the 
paste bin) but
I would just like to open up the discussion for creating something like this. 
Feedback please!

I think your implementation is fine -- I've written essentially the same myself, in fact -- but I also think you've exposed the fact that expressing this thought in Java ends up looking like a bad expression of the thought. Fennec, Android Background Services, and even Android itself, have all elected to make interfaces one-shot deals. In the end, the abstraction does not win enough to make it worthwhile.

Best,
Nick
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to