Re: How to access one specific lowlevel object through a general highlevel interface?
- From: "Cristiano Sadun" <cristianosadun@xxxxxxxxxxx>
- Date: 20 Dec 2005 07:55:28 -0800
Hm. You're saying something slightly contradictory: from one side, the
client "must send that data over the "most appropriate" communication
channel"; for the other, "it shouldn't be aware of their existance".
If your client needn't know about channel because, for example, the
"most appropriate" might change under its nose :) (i.e. there is a
reason for avoding shipping any knowledge about channels to the
client), the only way out is to define a bootstrap protocol (always the
same) with which you ask (a server, I presume) what is the current
strategy for selecting channels.
If it's a pure local code design matter instead, then just define a
SelectionStrategy object (probably a singleton, unless the strategy
depends on the context) which "knows" about how to select the best
channel out of a set of protocols, and delegate for example the choice
to the protocol itself.
.
- References:
- Prev by Date: Re: Multiple controllers hierarchy?
- Next by Date: Re: How to access one specific lowlevel object through a general highlevel interface?
- Previous by thread: How to access one specific lowlevel object through a general highlevel interface?
- Next by thread: Re: How to access one specific lowlevel object through a general highlevel interface?
- Index(es):
Relevant Pages
|