• Post Reply Bookmark Topic Watch Topic
  • New Topic

bean should not be a listener...  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a bean class which is implementing ActionListener. Is it a good idea to have a listener class with data and setter/getter methods???

Thanks.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Listener should be like an observer class. I beleive its not a good idea to keep getter and setter in the listener !

Thanks,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!