Design



I am trying to make a adapter program.
-There can be different kind of adapters, which each can take data from

one source.
-It should be possible to plugin the new adapter for a new source of
data.
-The adapters all make a common structure to give it to the connected
clients. (I have implemented this part).
-Each adapter uses a specific API to collect data from data source.

How the design of the adapter class should look like? Which design
pattern?
There should probably be a superclass for all adapters, right? But they

use different APIs, as I said before, and one of the adapters inherits
already from couple of data source API classes.

Thanks.

Regards
mojtaba

.



Relevant Pages

  • Re: Design
    ... I'll just add to what Frans has already said. ... You say common structure. ... API for getting the data, you have coupling on the structure of the data. ... To do an adapter correctly, you have to decide what you want to adapt! ...
    (comp.object)
  • Re: Design
    ... If one data source becomes ... the other adapter shall take over. ... API for getting the data, you have coupling on the structure of the data. ... Adapters inherit from the adapter class. ...
    (comp.object)
  • Re: Asynchronous Custom Adapters
    ... > Asynchronous API for custom adapters that uses the standard Begin/Send ... BizTalk has a fairly extensive API for adapter development, ...
    (microsoft.public.biztalk.general)
  • Guidance required on a custom biztalk adapter
    ... scheduled), uses our proprietary API to retrieve data, perform some ... may be update some data back using our API and then ... publish corresponding messages back to BizTalk message box. ... I am not sure what kind of adapter I need to write. ...
    (microsoft.public.biztalk.server)
  • Re: External power to eMap
    ... > You might want to examine that cigarette ligher adapter for the Garmin. ... Thanks, I hadn't thought of this, I will make this measurenent on my Quest. ... > drop out regulator that is reasonably efficient. ... I would welcome a design. ...
    (sci.geo.satellite-nav)