Spring-OSGI 1.0 M3中文手册 - 编程入门网
t satisfied upon startup.
Spring-OSGI 1.0 M3中文手册(3)时间:2011-11-02 DIY部落For example: Spring-Context: config/osgi-*.xml;wait-for-dependencies:=false Creates an application context using all the files matching "osgi-*.xml" in the config directory. Context creation will begin immediately even if dependencies are not satisfied. This essentially means that mandatory service references are treated as though they were optional - clients will be injected with a service object that may not be backed by an actual service in the registry initially. See section 4.2 for more details. timeout (300): the time to wait (in seconds) for mandatory dependencies to be satisfied before giving up and failing application context creation. This setting is ignored if wait- for-dependencies:=false is specified. The default is 5 minutes (300 seconds). For example: Spring-Context: *;timeout:=60 publish-context (true|false): controls whether or not the application context object itself should be published in the OSGi service registry. The default is to publish the context. For example: Spring-Context: *;publish-context:=false If there is no Spring-Context manifest entry, or no value is specified for a given directive in that entry, then the directive takes on its default value. 3.2 Required Spring Framework and Spring Dynamic Modules Bundles The Spring Dynamic Modules project provides an number of bundle artifacts that must be installed in your OSGi platform in order for the Spring extender to function correctly: Spring Dynamic Modules提供了很多现成的bundle,要使用Spring extender必须将这些bundle安装到 OSGi平台中: The extender bundle itself, org.springframework.osgi.extender The core implementation bundle for the Spring Dynamic Modules support, org.springframework.osgi.core The Spring Dynamic Modules i/o support library bundle, '' org.springframework.osgi.io In addition the Spring Framework provides a number of bundles that are required to be installed. As of release 2.5 of the Spring Framework, the Spring jars included in the Spring distribution are valid OSGi bundles and can be installed directly into an OSGi platform. The minimum required set of bundles is: 另外spring还提供了很多它自己的bundle,这些bundle可以直接被安装到OSGi平台中。要使用spring 的最低要求需要以下几个bundle: spring-core.jar (bundle symbolic name org.springframework.core) spring-context.jar (bundle symbolic name org.springframework.context) spring-beans.jar (bundle symbolic name org.springframework.beans) spring-aop.jar (bundle symbolic name org.springframework.aop) In additional the following supporting library bundles are required. OSGi-ready versions of these libraries are shipped with the Spring Dynamic Modules distribution. Spring-OSGI 1.0 M3中文手册(4)时间:2011-11-02 DIY部落以下几个bundle是spring的依赖bundle,可以在Spring Dynamic Modules的分发包中找到它们: aopalliance backport-util (for JDK 1.4) cglib-nodep commons-logging (SLF4J version highly recommend |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |