[TransWarp] Finding an object that provides the interface

Oleg Broytmann phd at work.phd.pp.ru
Tue May 27 10:16:11 EDT 2003


On Wed, May 21, 2003 at 03:12:09PM -0400, Phillip J. Eby wrote:
> At 09:27 PM 5/21/03 +0400, Oleg Broytmann wrote:
> >c.registerProvider(iface, provider) what is c and what is provider? Well,
> >provider is probably the instance of my class that I want to be found by
> >findUtility.
> 
> 'c' is the component that you want to publish the value from.  'provider' 
> is an object that implements config.IRule: i.e. a callable that takes three 
> parameters: propertyMap, configKey, targetObject, and returns the 
> implementing object.
> 
> (This is documented in config.IConfigurable; 'registerProvider' is a method 
> of that interface.)

   I am trying to call somecomponent.registerProvider, which in turn calls
self.__instance_provides__.registerProvider, where __instance_provides__ is
a PropertyMap. PropertyMap.registerProvider calls self.register... but
there is no "register" in PropertyMap. What is going on?

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.



More information about the PEAK mailing list