`

VTS之Import-Bundle属性:import-scope:=application

 
阅读更多

1. 配置文件

    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-SymbolicName: com.apress.springosgi.ch5.eclipselink
    Bundle-Version: 1.0.0
    Bundle-Name: HelloWorld SpringSource dm Server EclipseLink
    Bundle-Vendor: SpringFeng
    Import-Library: org.springframework.spring;version="[3.0.5,3.1.0)"
    Import-Bundle: org.eclipse.persistence;version="2.0.0";import-scope:=application

2. 解释说明

    属性import-scope:=application是VTS提供的,给Import-Bundle添加该属性后指Import的Bunlde:

    org.eclipse.persistence是动态Import进来的。当应用程序中的某个Client Bundle(一般式持久化类)需

    要使用org.eclipse.persistence Bundle提供的JPA Adapter时,当使用该服务进行weaving时将会引入

    新的Hard依赖至应用程序中的Client Bundle,并且打破了应用程序的模块性。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics