|
|
Re: CODES.getAllCodeTypes(..) [message #1039394 is a reply to message #1038792] |
Fri, 12 April 2013 05:45 |
|
I do not quite agree. The default implementation's intention is surely good (speed!), but if you are not aware of the behaviour you can easly spend lots of time debugging your code... I think the least one could have expected is, that this "tweak" is documented. All I could find (Scout 3.8 ) is the JavaDoc on ICodeService.getAllCodeTypeClasses(classPrefix) that says "returns all codetype classes from bundles with classPrefix". This clearly does not hold for the default implementation when you pass "" as classPrefix.
Besides, how much of a performance boost is it really? Can we really save time by not looking at classes that do not start with the bundle symbolic name? (Especially if you follow the convention to always prefix your classes with the BSN.)
If I missed something here, please comment.
Beat
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04265 seconds