File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Annotations versus Adapter Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Annotations versus Adapter Pattern" Watch "Annotations versus Adapter Pattern" New topic
Author

Annotations versus Adapter Pattern

Khaled Mahmoud
Ranch Hand

Joined: Jul 15, 2006
Posts: 360
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.


SCJP, SCJD,SCWCD,SCDJWS,SCEA 5 MCP-C#, MCP-ASP.NET - http://www.khaledinho.com/
Life is the biggest school
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Annotations versus Adapter Pattern
 
Similar Threads
adapter-pattern
What is difference between Class Adapter and Object Adapter pattern?
SCEA assignment query
Adapter pattern
Can a FrontMan class access the argument to @FrontmanCommand value