[Catalyst] Initialization ordering, how?
Dominique Quatravaux
dom at idealx.com
Thu Jun 30 16:43:04 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bernhard Bauer wrote:
> [...] if you 'use base "Foo::M::CDBI" in your model class, it
> would load Foo::M::CDBI and not break singletonness because then
> Foo::M::CDBI::new() is called with your model class as first
> parameter,
This is not so under Catalyst as I understand it: making class Bar
subclass of Foo does not somehow make Foo->new() (which
Catalyst::Setup will invoke because it ->new()'s everything in sight)
an equivalent of Bar->new(). So there would be two singletons, one of
a derivative class of the other.
Besides, my model class should *not* be a descendent of Foo::M::CDBI
which is just a Class::DBI black-magic clearinghouse and does not have
any behavior of interest for a specific model class.
BTW I ended up recoding a solution of my own (I'll be replying to
myself higher up in the thread tree).
- --
Dominique QUATRAVAUX Ingénieur senior
01 44 42 00 08 IDEALX
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCxAT3MJAKAU3mjcsRApUHAJ9E7muEQeSD1gb/Bpx9BF+I3gal3QCfZsDO
8d4CNAxDGBQtQb7fOFiLnfw=
=MIl5
-----END PGP SIGNATURE-----
More information about the Catalyst
mailing list