自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

用Apache的commons-modeler辅助开发JMX时,必须的jar包。

2013-03-21

Eclipse快捷键整理

Eclipse常用的快捷键

2008-04-04

Java代码规范

Java代码规范,编写格式良好的代码

2008-04-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除