This content has been marked as final.
Show 1 reply
-
1. Re: ERRAI-CDI LoadAsync with Instance<T>
mbarkley Nov 2, 2016 2:23 PM (in response to 6324alfp)Hi Alfredo,
In Errai 3.x, it is not possible to inject an Instance<T> with async loading enabled. The issue is that Instance<T> is a synchronous API, whereas when you enable async loading of beans an async API is required.
If you need to dynamically create bean instances and have async bean loading in Errai 3.x, then you will have to use the AsyncBeanManager for looking up beans.
Cheers.