Hi Romain,

It is cached in the InjectionResolver, that should suffice.


Cheers,
Arne

Am 19.01.13 17:44 schrieb "Romain Manni-Bucau" unter
<[email protected]>:

>Hi guys,
>
>is there any reason
>why org.apache.webbeans.inject.instance.InstanceImpl#resolveBeans() is not
>cached in the instance of InstanceImpl (whatever the cache is - a volatile
>var, an atomicref or even a synchronized block)?
>
>typically doing this pattern: if (!instance.isAmbiguous()) { return
>instance.get(); } you'll call it twice for nothing (and it can be O(n)
>with
>n the numbe rof beans)...or just regarding runtime it seems weird no?
>
>wdyt?
>
>*Romain Manni-Bucau*
>*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>*Blog: 
>**http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
>*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>*Github: https://github.com/rmannibucau*

Reply via email to