Hi,

 

Am am creating a Cairngorm app that needs to support the API of a number of
similar online webservices.  All the webservices supply the same
functionality - just in a slightly different way.

 

My idea is this.  Use the FactoryPattern for the Delegates.  So when a
Command needs a delegate it calls the Factory and the factory supplies the
command with a delegate.

 

So the command needs a LoginDelegate.  It gets a
LoginDelegateForWebServiceA(), because the user has previously configured
the app to use web service A.

 

I am just so new to actually applying design patterns.  I have read many
articles and books (Head first Java books are GREAT!) so I understand the
concept.  I just haven't used it much so I am not sure if my idea is any
good.

 

Is this the way to go?  Can you point me at any good articles on how to
support multiple "backends"?

 

Best,

Sammi

Reply via email to