小编BJ *_*ave的帖子

为什么OSGi声明服务(DS)注释不是从超类继承的?

OSGi声明性服务(DS)规范定义了注释,这些注释可以由工具(如Bnd)处理到运行时使用的组件描述xml中.R6规范中的112.8.1说:

The Component Annotations are not inherited, they can only be used on a given class, annotations on its super class hierarchy or interfaces are not taken into account.

为什么指定它们不允许继承?

java inheritance osgi declarative

11
推荐指数
1
解决办法
1022
查看次数

标签 统计

declarative ×1

inheritance ×1

java ×1

osgi ×1