It is going to be forbidden before ADV.

On 04/05/2013 05:28 PM, Romain Manni-Bucau wrote:
in AfterDeploymentValidation? so it means you can't get beans when all is
ok? that's just inconsistent

*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*



2013/4/5 Mark Struberg <strub...@yahoo.de>

Romain, in CDI-1.1 this will even be forbidden by the spec!

LieGrue,
strub




----- Original Message -----
From: Romain Manni-Bucau <rmannibu...@gmail.com>
To: deltaspike-dev@incubator.apache.org
Cc:
Sent: Friday, April 5, 2013 11:47 AM
Subject: When using the BeanManager to retrieve Beans before the
Container is started, non-portable behaviour results!
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