<bdo id='gV7va'></bdo><ul id='gV7va'></ul>

    <small id='gV7va'></small><noframes id='gV7va'>

    <legend id='gV7va'><style id='gV7va'><dir id='gV7va'><q id='gV7va'></q></dir></style></legend>

    1. <i id='gV7va'><tr id='gV7va'><dt id='gV7va'><q id='gV7va'><span id='gV7va'><b id='gV7va'><form id='gV7va'><ins id='gV7va'></ins><ul id='gV7va'></ul><sub id='gV7va'></sub></form><legend id='gV7va'></legend><bdo id='gV7va'><pre id='gV7va'><center id='gV7va'></center></pre></bdo></b><th id='gV7va'></th></span></q></dt></tr></i><div id='gV7va'><tfoot id='gV7va'></tfoot><dl id='gV7va'><fieldset id='gV7va'></fieldset></dl></div>
    2. <tfoot id='gV7va'></tfoot>

      Eclipse 扩展和声明式服务

      Eclipse Extensions and Declarative Services(Eclipse 扩展和声明式服务)
      • <small id='pmHow'></small><noframes id='pmHow'>

          <tbody id='pmHow'></tbody>

          <bdo id='pmHow'></bdo><ul id='pmHow'></ul>

            <tfoot id='pmHow'></tfoot>

                <legend id='pmHow'><style id='pmHow'><dir id='pmHow'><q id='pmHow'></q></dir></style></legend>
                <i id='pmHow'><tr id='pmHow'><dt id='pmHow'><q id='pmHow'><span id='pmHow'><b id='pmHow'><form id='pmHow'><ins id='pmHow'></ins><ul id='pmHow'></ul><sub id='pmHow'></sub></form><legend id='pmHow'></legend><bdo id='pmHow'><pre id='pmHow'><center id='pmHow'></center></pre></bdo></b><th id='pmHow'></th></span></q></dt></tr></i><div id='pmHow'><tfoot id='pmHow'></tfoot><dl id='pmHow'><fieldset id='pmHow'></fieldset></dl></div>
                本文介绍了Eclipse 扩展和声明式服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我对 Eclipse 架构中的扩展/服务方法有点困惑.开发人员有两种选择:

                I'm a little confused on the approach to extensions/services in the Eclipse architecture. There are two options available to a developer:

                1. Eclipse插件扩展的使用——http://www.eclipse.org/articles/Article-插件架构/plugin_architecture.html
                2. 声明式服务的使用 - http://www.eclipse.org/equinox/bundles/

                什么时候你会使用其中一种,有什么优点和缺点每种方法?未来哪个是首选方法?

                When you would use one over the other and what are the advantages and the disadvantages of each approach? Also going forward which is the preferred approach?

                推荐答案

                在 EclipseZone 上有一个很好的比较(我认为是从 2007 年开始):Eclipse 扩展和 OSGi 服务的比较.

                There's a pretty good comparison (from 2007, I think) on EclipseZone: A Comparison of Eclipse Extensions and OSGi Services.

                我会遵循您的目标平台的约定.因此,如果您正在为 Eclipse 3.4 编写插件,比如说,创建一个 Eclipse 3.4 插件(它将使用 MANIFEST.MF 来表示依赖项,使用 plugin.xml 表示扩展/扩展点 - 您链接到的文章是针对 Eclipse 2.x 的).您可以检查 plugins 目录的内容来确认这一点.

                I would follow the conventions of your target platform. So, if you're writing a plugin for Eclipse 3.4, say, create an Eclipse 3.4 plugin (which will use a MANIFEST.MF for dependencies and a plugin.xml for extensions/extension points - the article you link to is for Eclipse 2.x). You can examine the contents of the plugins directory to confirm this.

                这篇关于Eclipse 扩展和声明式服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                Why a sawtooth shaped graph?(为什么是锯齿形图形?)
              • <legend id='K9IMv'><style id='K9IMv'><dir id='K9IMv'><q id='K9IMv'></q></dir></style></legend>
                  <tbody id='K9IMv'></tbody>

                <i id='K9IMv'><tr id='K9IMv'><dt id='K9IMv'><q id='K9IMv'><span id='K9IMv'><b id='K9IMv'><form id='K9IMv'><ins id='K9IMv'></ins><ul id='K9IMv'></ul><sub id='K9IMv'></sub></form><legend id='K9IMv'></legend><bdo id='K9IMv'><pre id='K9IMv'><center id='K9IMv'></center></pre></bdo></b><th id='K9IMv'></th></span></q></dt></tr></i><div id='K9IMv'><tfoot id='K9IMv'></tfoot><dl id='K9IMv'><fieldset id='K9IMv'></fieldset></dl></div>
                • <small id='K9IMv'></small><noframes id='K9IMv'>

                      <bdo id='K9IMv'></bdo><ul id='K9IMv'></ul>
                      <tfoot id='K9IMv'></tfoot>