本人翻译目的是用来学习Tapestry5的,共享出来希望大家批评指正。计划持续翻译。
![](http://chinajavawolf.iteye.com/javascripts/fckeditor/editor/images/smiley/msn/lightbulb.gif)
语法格式灵敏性
Ever get frustrated because you typed the right thing with the wrong case and your system blew up? We do.
不断遭受挫折
,
因为你用错误的书写格式键入了正确的内容并且你的系统区分大小写
?
我们解决。
Tapestry IOC 试图忽略所有主要构造的大小写。
1. 服务ids.
2. 对象提供器前缀
3. 消息keys.
因而,getService("Baz", Baz.class)是首选的,但getService("BAZ", Baz.class) (or任何变体)
也将正常的工作。这也可扩展到其他命名约定,比如contributeFoo方法。它也应用在标注的值内。
只是语法格式被忽略—其他标点,像空格,必须严格匹配。
这是通过
CaseInsensitiveMap类支持的。