cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Moran" <>
Subject Selector architecure
Date Thu, 10 May 2001 19:40:05 GMT
I noticed that the Selector Interface's select method returns a boolean.  Thus for a selector
like the BrowserSelector the sitemap has to test each possible case until it finds one that
returns true.  Wouldn't it be more efficient to just have the Selector Interface return a
String which would be used to lookup a branch in a Map?  Then the sitemap.xmap syntax for
a selector would look and execute more like a switch/case than a nested if.  This would avoid
having to test every possible case to find the right branch to take.

Jim Moran

View raw message