[Solar-talk] Solar_Event_Dispatcher (was: tests in the browser)
Rodrigo Moraes
rodrigo.moraes at gmail.com
Wed Sep 20 11:48:44 PDT 2006
On 9/20/06, Andrew Shell wrote:
> Great job! One thing I was thinking about was if the Solar version
> needs the getInstance logic because we have the registry to store stuff
> like this in.
I stayed for a while thinking in how to make the singleton in a Solar
way. Solar has very few singletons (Solar itself and the new
Solar_Request also acts as one, because of the static properties). I
haven't tried the registry, and indeed, that would be a more Solar
way.
> It certainly doesn't hurt to have both ways though. In
> order for the registry method to work we would have to make the
> constructor public. If it was public then we could do something like this:
I agree, let's make the constructor public and use the registry to
store the instances (and drop getInstance(), getting closer to how
things are done in Solar).
thanks for the feedback. :-)
rodrigo
More information about the solar-talk
mailing list