当激活器类/“Bundle-Activator”被激活时插件中需要什么时候不需要?
我已经为我的内容类型实现了“新向导”插件。 测试过 - 它有效。
然后我发现既没有声明 Bundle-Activator,也没有定义 Activator 类。
问题是 - 当插件中真正需要 Activator 类时。 什么时候根本不需要它?
I've implemented "New Wizard" plug-in for my content-type.
Tested it - it works.
Then I've found that neither Bundle-Activator was declared, nor the Activator class was defined.
The question is - when the Activator class is really needed in plug-in.
And when it doesn't needed at all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅当您需要在捆绑包开始和/或停止时执行某些操作时,才需要捆绑包激活器。如果您的捆绑包只是导出某些包的库,则不需要激活。
如果您的捆绑包不需要一个来按预期运行,那么它可能不需要一个:)
You only need the Bundle-Activator when you need to to something at the start and / or stop of your bundle. If your bundle is only a lib that is exporting some packages, you don't need the activation.
If you didn't need one for your bundle to function as it is supposed to, then it probably doesn't need one :)