Comment 7 for bug 240631

Revision history for this message
Martijn Pieters (mjpieters) wrote : Re: [Bug 240631] Re: Impossible to determine how a utility was registered

On 17. juni. 2008, at 14.57, Wichert Akkerman wrote:
> Martijn makes a good point: site managers already have all the logic
> to
> find the right registration and look at parent managers. A set of
> query*Registration methods parallel to the existing query* methods
> would
> be ideal and remove a lot of code that would have to be duplicated.

But why do you need the registration info? You have the interface, all
you need is an isinstance check or an 'is' test to see if the returned
utility is the same as what components.xml wants to register,
depending on wether or not it's a factory or a component registration.

Martijn