- 博客(8)
- 资源 (3)
- 收藏
- 关注
原创 【OSGi】Require-Bundle与Import-Package
Require-Bundle的作用Require-Bundle的缺点1、不知道究竟导入了哪些包2、导出包的bundle重构后,会影响导入bundle3、导致导入大量无用的包为什么引入Require-Bundle?Require-Bundle的作用Another kind of constraint that can be placed on a bundle i
2013-10-27 20:12:48 12992
原创 ThreadLocal的误用可能会导致OutOfMemoryError
推荐Java Code Geeks上的两篇文章:When and how to use a ThreadLocalhttp://www.javacodegeeks.com/2013/10/when-and-how-to-use-a-threadlocal.html As our readers might already have guessed, I deal w
2013-10-27 12:13:50 7299 1
转载 Javascript 作用域和变量提升
http://justjavac.com/javascript/2013/06/12/declaration-in-javascript.html 下面的程序是什么结果? var foo = 1; function bar() { if (!foo) { var foo = 10;
2013-10-27 09:06:48 2957
原创 【OSGi】OSGi类加载流程
OSGi每个模块都有自己独立的classpath。如何实现这一点呢?是因为OSGi采取了不同的类加载机制: OSGi为每个bundle提供一个类加载器,该加载器能够看到bundle Jar文件内部的类和资源; 为了让bundle能互相协作,可以基于依赖关系,从一个bundle类加载器委托到另一个bundle类加载器。
2013-10-19 21:29:37 17773 1
原创 【OSGi】OSGi如何解决Java模块化的不足
为什么说Java缺少对高级模块化的支持?Java确实以面向对象的方式提供了某种程度的模块化,但它从未考虑支持粗粒度的模块化编程。
2013-10-07 12:46:50 10057 2
原创 Promise in AngularJS
What's promiseAngular’s event system provides a lot of power to our Angular apps. One of the most powerful features that it enables is automatic resolution of promises.Promises are a method of res
2013-10-07 12:43:50 8745
原创 基于Equinox构建OSGi项目
几种OSGi框架Several independently implemented OSGi frameworks exist today, including four that are available as open source software.Equinox is the most widely deployed OSGi framework today owing t
2013-10-07 11:07:43 2686
原创 【OSGi】OSGi生命周期
OSGi生命周期层有两种不同的作用: 在应用程序外部,定义了对bundle生命周期的相关操作。OSGi生命周期层允许在执行时,从外部安装、启动、更新、停止、卸载不同的bundle,进而定制应用的配置。 在应用程序内部,定义了bundle访问其执行上下文的方式,为bundle提供了一种与OSGi框架交互的途径以及一些执行时的便利条件。
2013-10-07 10:17:47 9363 4
commons-modeler-2.0.1.jar + commons-logging-1.1.2-bin.zip
2013-03-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人