blob: f5b2833dc623449ab6e4422030a449052b080241 [file] [log] [blame]
----
Case Insensitivity
----
Case Insensitivity
Ever get frustrated because you typed the right thing with the wrong case and your system blew up? We do.
Tapestry IOC attempts to be case insensitive for all the main constructs:
* Service ids.
* Object provider prefixes.
* Message keys.
[]
Thus, <<<getService("Baz", Baz.class)>>> is preferred, but <<<getService("BAZ", Baz.class)>>> (or any variation thereof) will work just exactly as well. This also extends to other naming conventions,
such as <<<contributeFoo>>> methods. It also applies to values inside annotations.
Just case is ignored --
other punctuation, as well as whitespace, must exactly match.
Under the covers, this is supported by the {{{../apidocs/org/apache/tapestry5/ioc/CaseInsensitiveMap.html}CaseInsensitiveMap}} class.