Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Single Proxy - Multiple Delegates?  (Read 6104 times)
pebanfield
Full Member
***
Posts: 33


View Profile Email
« on: February 11, 2010, 10:52:20 »


Hi -

I'm planning to use a single proxy that can be used to invoke one of several different delegates. The single proxy will employ a value object that acts as the schema for data supplied from various delegates. Thus, a single notification will request some data by providing a type value and the proxy will choose the appropriate delegate based on that value. The requesting application will then receive more or less the same data without having to worry about how it was acquired.

Does this sound right? Are there drawbacks to this approach? Is there another best-practice approach? Thanks.

Peter
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: February 11, 2010, 04:22:40 »

Sounds reasonable.

-=Cliff>
Logged
Pages: [1]
Print