1 2 3 4 5 6 下一页 关于headers的细节参见OSGi规范中的3.2节。一些OSGi实现框架可能会支持一些与众不同的jar包,但是这些jar包关于OSGi的格式还是不变的。 The Spring extender recognizes a bundle as "Spring-powered" and will create an associated application context when the bundle is started if one or both of the following conditions is true: 如果满足以下两个条件,Spring extender会通过一个bundle的具有"Spring-powered"的验证,当这个bundle启动时会为其创建一个相关联的application context: The bundle classpath contains a folder META-INF/spring with one or more files in that folder with a '.XML' extension. 这个bundle的classpath包含一个目录META-INF/spring,这个目录中有一个或多个扩展名为'.xml'的文件。 META-INF/MANIFEST.MF contains a manifest header Spring-Context. 这个bundle中的META-INF/MANIFEST.MF文件包含一个名为Spring-Context的header。 In addition, if the optional SpringExtender-Version header is declared in the bundle manifest, then the extender will only recognize bundles where the specified version constraints are satisfied by the version of the extender bundle (Bundle-Version). The value of the SpringExtender-Version header must follow the syntax for a version range as specified in section 3.2.5 of the OSGi Service Platform Core Specification. 另外,如果bundle的manifest声明了可选header - SpringExtender-Version,那么extender将仅仅认可与之版本相符的指定版本约束的bundle(bundle的Bundle-Version)。SpringExtender-Version的值必须遵循OSGi规范3.2.5节中指定的版本范围。 (责任编辑:admin) |