首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Taperstry5.0学习日记

2012-11-04 
Taperstry5.0学习日志1.In Tapestry, injection occurs through constructors, through parameters to ser

Taperstry5.0学习日志

1.In Tapestry, injection occurs through constructors, through parameters to service builder methods, or through direct injection into fields. Tapestry prefers constructor injection, as this emphasizes that dependencies should be stored in?final?variables. This is the best approach towards ensuring thread safety.

Tapestry喜欢构造器注入,因为这强调了依赖应该被存储在final变量中,这是确保线程安全最好的方法。

热点排行