raisedragon / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

ListenerAdapter #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have create a lot of listeners just as more organizing then useful, but I 
think that class should be an interface than a real class just an idea

Original issue reported on code.google.com by italian...@gmail.com on 5 Jun 2011 at 8:38

GoogleCodeExporter commented 9 years ago
ListenerAdapter follows the Adapter pattern in some Swing classes. The point is 
to allow one to only implement event methods that need. Otherwise you would 
have ~50 different methods in every single listener which looks terrible.

I can however provide a separate interface for all the events. I have been 
reluctant to add one since it does add a layer of complexity and only has very 
small usage scenarios (proxy classes and ScriptEngine). I will however add it 
if you want me to

Original comment by Lord.Qua...@gmail.com on 5 Jun 2011 at 9:39

GoogleCodeExporter commented 9 years ago
if it is a complex thing then don't  it is fine

Original comment by italian...@gmail.com on 5 Jun 2011 at 9:52

GoogleCodeExporter commented 9 years ago
Okay. 

Original comment by Lord.Qua...@gmail.com on 5 Jun 2011 at 11:36