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变量中,这是确保线程安全最好的方法。

你可能感兴趣的:(thread,tapestry)