MCPcopy Create free account
hub / github.com/twisted/twisted / setComponent

Method setComponent

src/twisted/python/components.py:213–217  ·  view source on GitHub ↗

Cache a provider of the given interface.

(self, interfaceClass, component)

Source from the content-addressed store, hash-verified

211 return adapt
212
213 def setComponent(self, interfaceClass, component):
214 """
215 Cache a provider of the given interface.
216 """
217 self._adapterCache[reflect.qual(interfaceClass)] = component
218
219 def addComponent(self, component, ignoreClass=0):
220 """

Calls

no outgoing calls