[TransWarp] Finding an object that provides the interface

Phillip J. Eby pje at telecommunity.com
Tue May 27 13:09:44 EDT 2003

At 06:16 PM 5/27/03 +0400, Oleg Broytmann wrote:
>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?

Refactoring error; I missed renaming it to registerProvider when I combined 
the methods.  I've just checked in a fix.

More information about the PEAK mailing list