Re: static or not?
- From: "hawat.thufir@xxxxxxxxx" <hawat.thufir@xxxxxxxxx>
- Date: 26 May 2005 02:39:19 -0700
iamfractal@xxxxxxxxxxx wrote:
> Hi, Thufir,
....
> If Driver were a class of static methods, then Databse would now need
> a dependency on the concrete class Driver. And as Driver only controls
> the GUI, then if Database wants to output to a text file, it must have
> some knowledge of other functionality that writes its output to that
> medium.
right, follow you there.
> If Driver were a singleton, however, then, as mentioned, it could
> declare an interface (View) that is registered in a Registry that is
> known to Database. But all the other means of outputting data could
> also register that same interface to implement functionality for their
> own, specific medium. Thus TextView, FileView, and SocketView
> could all register their View interface in the Registry.
....
There'd be package "driverAndViews," or something, with the various
view interfaces package private; or, the views would be nested
within Driver. The view interfaces are registered in Registry to
enable Database to send that e-mail to the CEO.
How does the communication between Database and Registry work?
> Now, I'm just waiting to see, "No, that's not what I meant by Driver
....
heh, not at all, spot on :)
-Thufir
.
- Follow-Ups:
- Re: static or not?
- From: iamfractal
- Re: static or not?
- References:
- static or not?
- From: David Vanderschel
- Re: static or not?
- From: iamfractal
- Re: static or not?
- From: hawat.thufir@xxxxxxxxx
- Re: static or not?
- From: iamfractal
- static or not?
- Prev by Date: Splitting Vector into smalller sub-Vectors
- Next by Date: Re: Splitting Vector into smalller sub-Vectors
- Previous by thread: Re: static or not?
- Next by thread: Re: static or not?
- Index(es):
Relevant Pages
|