[Twisted-Python] General question on components, interfaces,
etc.  Terry Jones terry at jon.es Mon Jun 19 17:59:49 EDT 2006
glyph> It allows you to use the same language to talk about
plugins as you glyph> would about any other kind of adapter.
Effectively, the plugin glyph> system is a way to adapt your
"system environment" to an object glyph> which provides a given
interface.  If you use the twisted plugin glyph> system (or some
other system which uses Interface objects) then it glyph> is
pretty easy to factor your code such that implementations of the
glyph> desired interface can be obtained implicitly through the
environment glyph> or explicitly by user code passing in an
implementation -- or by glyph> passing in an object that is
adaptable to that interface, and then glyph> doing adaptation.
Hi, thanks for the explanation. I have another basic question...
If were not using a component-based approach and instead I
simply implemented the interface I wanted (in, say, myImp.py),
then I could "import myIm