• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Annotations versus Adapter Pattern

 
Khaled Mahmoud
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why did the EJB designers chose to implement the annotations solution for the callback methods of the bean classes and chose it over other solutions, like the adapter pattern. For example the bean class can extend a CallBackAdapter class which providers default implementation for all methods and then i only override the methods I want to make use of.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic