Hi,

this warning message "When using the BeanManager to retrieve Beans before
the Container is started, non-portable behaviour results!" pops up when the
Bean[Manager]Provider is used. the point is we can use it in
AfterDeploymentValidation event but since extensions order is not
guaranteed a custom extension can use it before the "provider" extension
set the warning to not be printed anymore.

Can't we do anything?

A working but not very sexy solution is to offer a
Bean[Manager]Provider.getXXX(args, warnBoolean);

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