Directory Service Providers need to be instantiated
Aaron Bentley
aaron at aaronbentley.com
Mon Oct 25 18:13:02 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/27/2010 02:58 AM, Martin Pool wrote:
> On 25 September 2010 01:20, Glen Mailer <glenjamin at gmail.com> wrote:
> I agree, that is a little strange: why not just put in objects which
> will themselves provide a lookup() call, or for that matter why not
> just register callables that can be passed (name, url) directly.
>
> It's probably done that way because whoever first added it wanted to
> register classes, have them constructed without arguments, then to
> return lookup.
I think it's because I didn't want to instantiate the class unless it
was actually needed.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzFup0ACgkQ0F+nu1YWqI2CCgCcDzUa/lhP4R5JQBIQMmSfdWfx
2QsAni3fkscaWxva6PSoELi2b/K9954O
=8DO9
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list