"Henning P. Schmiedehausen" <[EMAIL PROTECTED]> writes:

> Daniel Rall <[EMAIL PROTECTED]> writes:
> 
> >The addition of TorqueSingleton doesn't get us out of this situation
> >by any chance, does it?
> 
> That was the whole idea. The Singleton helped me to get rid of all the
> static references in Torque itself. For me (and at least for Martin,
> too) it works fine now as standalone Torque and as an Avalon
> component.

A huge +1 from me on the reasoning behind that change.  Velocity takes
a very similar approach.

One tweak to this which I would like to propose (and thus volunteer to
carry out) is changing the name of the class from "TorqueSingleton" to
"TorqueInstance" (or something similar).  To me, "singleton" implies
that there is only a single instance allowed per class loader.  If
TorqueSingleton doesn't already allow multiple instances of itself per
class loader, this seems like a natural goal, and changing the name is
a solid step in the right direction.

- Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to