deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject When using the BeanManager to retrieve Beans before the Container is started, non-portable behaviour results!
Date Fri, 05 Apr 2013 09:47:09 GMT
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*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message