Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为我的内容类型实现了“新向导”插件。测试它 - 它有效。
然后我发现既没有声明 Bundle-Activator,也没有定义 Activator 类。
问题是 - 当插件中真正需要 Activator 类时。当它根本不需要时?
当您需要在捆绑包的开始和/或停止时执行某些操作时,您只需要 Bundle-Activator。如果你的包只是一个导出一些包的库,你不需要激活。
如果您不需要一个来让您的捆绑包按预期运行,那么它可能不需要一个:)