[PEAK] Using config.FactoryFor
John Landahl
john at landahl.org
Thu Dec 18 15:20:53 EST 2003
On Thu, 18 Dec 2003 09:38:18 -0500, Phillip J. Eby <pje at telecommunity.com>
wrote:
>> Well, that would work, but it seems it would be simpler to just do:
>>
>> myFactory = binding.Obtain( config.FactoryFor(ISomeInterface) )
This is was the first thing I tried (it seems to be the most obvious
syntax), but then discovered more glue was required.
> This is now fixed in CVS; you can now use Obtain() as described above.
> I changed it so that looking up the factory already has the
> importObject() done. This simplified CreateViaFactory as well.
Excellent, thanks!
More information about the PEAK
mailing list