Osgi 外部服务未显示为服务
假设我有以下几点:Osgi 外部服务未显示为服务,osgi,apache-karaf,osgi-bundle,blueprint-osgi,maven-bundle-plugin,Osgi,Apache Karaf,Osgi Bundle,Blueprint Osgi,Maven Bundle Plugin,假设我有以下几点: com.their.test.parser com.their.validator com.my.validator com.this.test.parser是一个依赖于com.this.validator的包 com.this.validator为validator提供接口,并作为参考列表的参数传递到com.java.test.parser包中 com.my.validator实现com.this.validator,并作为服务公开 示例blueprint.x
com.their.test.parser
com.their.validator
com.my.validator
是一个依赖于com.this.test.parser
的包com.this.validator
为com.this.validator
提供接口,并作为validator
参考列表的
传递到参数
包中com.java.test.parser
实现com.my.validator
,并作为服务公开com.this.validator
blueprint.xml
如下所示:
// com.their.test.parser
<bean id="parser" class="com.their.test.parser">
<argument>
<reference-list interface="com.their.validator" />
</argument>
</bean>
// com.my.validator
<bean id="validator" class="com.my.validator" />
<service ref="validator" interface="com.their.validator" />
//com.this.test.parser
//com.my.validator
启动com.this.test.parser
时,它不会看到来自com.my.validator
的服务
在com.my.validator
暴露后,有没有办法强制/makecom.this.test.parser
实例化/启动