![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OSGi-基础
文章平均质量分 77
biyuchenfeng531588
这个作者很懒,什么都没留下…
展开
-
OSGi MANIFEST.MF文件
A bundle is a group of Java classes and additional resources equipped with a detailed manifest on all its contents, as well as additional services needed to give the included group of Java...原创 2011-09-04 10:14:35 · 183 阅读 · 0 评论 -
OSGi Concepts and Architecture
JSR-277:Java Module System JSR-291:Dynamic Component Support for Java,based on OSGi principles.1. OSGi实现模块化的4种方式 (1) It defines exactly what a module is (Java defines only deployment uni...原创 2011-08-10 11:36:56 · 85 阅读 · 0 评论 -
OSGi类加载机制
0. Java’s Virtual Machine, Java Classes, and the CLASSPATH Variable Class文件:由字节码组成,字节码文件运行在JVM上;默认情况下是由最后声明、最后加载的 ClassLoader加载。 ClassPath: 定位Class文件的位置。1. Classloader Technology ...原创 2011-08-12 10:40:02 · 186 阅读 · 0 评论 -
OSGi组件依赖
OSGi doesn’t allow you to specify class visibility at the class level, but instead at the level of the containing package.1. The header:Export-Package and The directives for the Export-Package h...原创 2011-08-12 10:56:50 · 100 阅读 · 0 评论 -
与OSGi容器交互
1. Bundles 获取Bundle信息接口:BundleContext,方法: getBundles();获取当前容器中所有的Bundle getBundle(long bundleId);获取指定Id的Bundle getBundle();获取的当前Bundle 例如: BundleContext bundleContext = ...原创 2011-08-12 15:44:29 · 139 阅读 · 0 评论 -
OSGi 对Native Code的支持
OSGi provides support for loading native libraries from components. This support includes loading the correct library based on the OS of the target host. Each component’s classloader intercepts...原创 2011-08-13 11:34:23 · 224 阅读 · 0 评论 -
OSGi Best Practice:Maven Bundle Plugin
1. OSGi Tooling (1) Use the Maven bundle plug-in to generate the Manifest http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html (2) Avoid using the OSGi API directly...原创 2012-02-01 16:44:16 · 99 阅读 · 0 评论