Patent ID: 7039919

Claim:
A computer-readable medium storing computer-executable instructions for causing a computer system programmed thereby to perform a method comprising: detecting a reference to an interface, wherein a software program comprises plural units, and wherein one of the plural units exposes the interface; determining if the interface has been wrapped by checking a data structure that tracks interface wrapping for the plural units of the software program by determining if there is an existing entry for the interface in the data structure; if the interface has been wrapped, returning a reference to the existing entry for the interface from the data structure, wherein the existing entry is a reference to an existing interface wrapper related to the interface which associates the interface with a unit identity for the unit that exposes the interface, wherein the existing interface wrapper stores a reference to instrumentation, the reference to the interface, and the unit identity of the unit that exposes the interface; if the interface has not been wrapped, discovering the unit identity of the unit that exposes the interface; adding a new entry to the data structure, wherein the new entry is a reference to a new interface wrapper related to the interface which associates the interface with the discovered unit identity; and returning a reference to the new entry.