This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Reading the seam book, it says that if I don't declare a scope for an injected component, Seam searches all scopes hierarchically looking for a non-null component by that name. My question is, is it best practices to always specify a scope so that seam doesn't have to do all that searching. With hundreds of components and hundreds of injections, wouldn't this impact performance?
I can answer this myself now. The context variables are stored in maps and it is a very cheap effort to check these maps, even with hundreds of components. Not the first place to begin checking for places to improve performance.