An extension point is a hook that allows two plug-ins to communicate through the exchange of data or code. All extension points are defined in XML; these are then stored in the Extension Registry and accessed on demand from client plug-ins. One nice feature of Eclipse's Extension Registry is that it is possible to dynamically link plug-ins together at runtime but prior to the bundle having been started. The Extension Registry is also cached, so that the second time you start up Eclipse, it starts faster than it did previously.
To define an extension point, we need two pieces of information:
- The id and name of the extension point
- A pointer to an XML Schema that defines what valid XML content is allowed
本文深入探讨了Eclipse中Extension Registry的功能,包括如何定义扩展点、使用XML schema进行内容验证,以及如何实现动态链接插件。此外,文章还介绍了Extension Registry的缓存机制,使得Eclipse启动速度更快。

被折叠的 条评论
为什么被折叠?



