Interfaces:About Scriptable Interfaces
出典: MDC
目次 |
[編集] このドキュメントの状態
このドキュメントはまだ書き始めたばかりで、完全に考慮されているわけではありません。 このドキュメントのほとんどは、 http://www.mozilla.org/scriptable/ および Creating XPCOM Components の情報を基にしています。
[編集] Scriptable Interfaces
Interfaces allow XPCOM Components to expose its functionality to the outside world while hiding the inner details of the component implementation. Interfaces are written in an Interface Description Language.
When we label an interface as scriptable, we're saying that components exporting this interface can be referenced (through this interface) from scripts (e.g JavaScript), and that we can write new components implementing the interface using script languages.
[編集] XPConnect
XPConnect is a technology that allows scriptable interfaces to be used/implemented from/in JavaScript scripts. No other scripts languages are supported by XPConnect.
[編集] Python
There's an extension extensions/python that bridges the gap between XPCOM and Python[1], allowing scriptable interfaces to be used/implemented from/in Python scripts.