views:

60

answers:

1

I'm starting a new project that will require use an external REST API that basically returns JSON and XML files. It's similar to the StackExchange API and I see every wrapper that has be done for that API has a different approach; for instance, stackoverflow-java-sdk uses the Adapter Pattern.

So, in order to make sure every new API feature will be included easyly... what would be the best design pattern?

+1  A: 

The Bridge pattern can be used to encapsulate two interfaces so they can vary independently. Sounds like what you're interested in.

Dave