RE: [picocontainer-dev] Bug or feature?
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Konstantin Priblouda wrote: > --- Jörg Schaible <[email protected]> wrote: > >> No, I would not do that. You can already cache the >> component itself and then >> a parameter cache is superfluous. And if you have >> the need not to cache the >> component, the probability is high, that some >> parameters have changed ... > > maybe I was not precise. It's not about caching > parameters, but caching component adapter list by > parameter ( collection one ) - obtaining this is > pretty expensive, and this list is used at leas twice > ( not only for actual value retrieval, but also > for verification ) Verification is not done normally at runtime. You setup the container, run the verification once and you're done with it. You could even perform this in an JDK 1.4 assert (at least if you setup the container programmatically). - Jörg --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email