This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Adapter Class

 
Raj chiru
Ranch Hand
Posts: 142
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..
Anybody explain to me what is Adapter class in java?
 
Gavin Tranter
Ranch Hand
Posts: 333
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I would do a google search, it seems to have some interesting results, also doing a search fro Adaptor pattern might help.

However, basicly, its an adaptor, like a real world adaptor (like when you travel and everywhere has different electrical outlet sockets). It wraps an API to make the API easier to work with, to hide its complexity from the client.

By wrapping an API in an adaptor you provide a buffer between your client and the API, thus if the API changes all you need to change is your adaptor and not your client.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic