【发布时间】:2016-10-07 12:02:16
【问题描述】:
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