iPOJO:@Publishes 和 @Subscriber 的标识符唯一性命名空间

发布于 2025-01-08 09:47:17 字数 409 浏览 2 评论 0原文

我正在使用 iPOJO 构建一些组件很棒的 EventAdmin 处理程序。该文档需要发布者和订阅者的名称属性,充当“唯一标识符”。

强制执行唯一性的范围是什么?

如果它就在我的捆绑包中,我可能会选择一些简短而有趣的内容,例如“mySpecialPublisher”。如果它跨越由iPOJO增强的所有捆绑包,我可能会选择更正式的东西,例如“com.mycompany.my.special.publisher”。

i'm building some components using iPOJO's awesome EventAdmin handlers. the documentation requires a name attribute for publishers and subscribers, acting as a "unique identifier".

what is the scope in which the uniqueness is enforced?

if it's just within my bundle, i might choose something short and sweet, like "mySpecialPublisher". if it's across all bundles enhanced by iPOJO, i might choose something more formal, like "com.mycompany.my.special.publisher".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瘫痪情歌 2025-01-15 09:47:17

它应该是全球唯一的,原因有二:
* 它用作service.pid(应该是唯一的)
* 它用于计算实例连接(架构)

It should be globally unique for two reasons:
* it is used as service.pid (which should be unique)
* it's used to compute instance connections (architecture)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文