You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2013/04/05 11:47:09 UTC
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*
Re: When using the BeanManager to retrieve Beans before the Container is started, non-portable behaviour results!
Posted by Mark Struberg <st...@yahoo.de>.
yes, in ADV it's allowed again.
LieGrue,
strub
----- Original Message -----
> From: Romain Manni-Bucau <rm...@gmail.com>
> To: Jozef Hartinger <jh...@redhat.com>
> Cc: deltaspike-dev@incubator.apache.org; Mark Struberg <st...@yahoo.de>
> Sent: Friday, April 5, 2013 5:55 PM
> Subject: Re: When using the BeanManager to retrieve Beans before the Container is started, non-portable behaviour results!
>
>t hat's what i understood so it should be allowed only here
>
> *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 Jozef Hartinger <jh...@redhat.com>
>
>> 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<https://twitter.com/rmannibucau>
>>> >*
>>> *Blog:
> **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>>> <http://**rmannibucau.wordpress.com/
> <http://rmannibucau.wordpress.com/>>
>>> *LinkedIn:
> **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>>> *Github:
> https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>>
>>>
>>>
>>> 2013/4/5 Mark Struberg <st...@yahoo.de>
>>>
>>> Romain, in CDI-1.1 this will even be forbidden by the spec!
>>>>
>>>> LieGrue,
>>>> strub
>>>>
>>>>
>>>>
>>>>
>>>> ----- Original Message -----
>>>>
>>>>> From: Romain Manni-Bucau <rm...@gmail.com>
>>>>> To:
> deltaspike-dev@incubator.**apache.org<de...@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<https://twitter.com/rmannibucau>
>>>>> >*
>>>>> *Blog:
>>>>>
> **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>>>>>
> <http://**rmannibucau.wordpress.com/<http://rmannibucau.wordpress.com/>
>>>>> >
>>>>> *LinkedIn:
> **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>>>>> *Github:
> https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>>>>
>>>>>
>>
>
Re: When using the BeanManager to retrieve Beans before the Container
is started, non-portable behaviour results!
Posted by Romain Manni-Bucau <rm...@gmail.com>.
that's what i understood so it should be allowed only here
*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 Jozef Hartinger <jh...@redhat.com>
> 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<https://twitter.com/rmannibucau>
>> >*
>> *Blog: **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>> <http://**rmannibucau.wordpress.com/ <http://rmannibucau.wordpress.com/>>
>> *LinkedIn: **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>> *Github: https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>
>>
>>
>> 2013/4/5 Mark Struberg <st...@yahoo.de>
>>
>> Romain, in CDI-1.1 this will even be forbidden by the spec!
>>>
>>> LieGrue,
>>> strub
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>>
>>>> From: Romain Manni-Bucau <rm...@gmail.com>
>>>> To: deltaspike-dev@incubator.**apache.org<de...@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<https://twitter.com/rmannibucau>
>>>> >*
>>>> *Blog:
>>>> **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>>>> <http://**rmannibucau.wordpress.com/<http://rmannibucau.wordpress.com/>
>>>> >
>>>> *LinkedIn: **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>>>> *Github: https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>>>
>>>>
>
Re: When using the BeanManager to retrieve Beans before the Container
is started, non-portable behaviour results!
Posted by Jozef Hartinger <jh...@redhat.com>.
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 <st...@yahoo.de>
>
>> Romain, in CDI-1.1 this will even be forbidden by the spec!
>>
>> LieGrue,
>> strub
>>
>>
>>
>>
>> ----- Original Message -----
>>> From: Romain Manni-Bucau <rm...@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*
>>>
Re: When using the BeanManager to retrieve Beans before the Container
is started, non-portable behaviour results!
Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <st...@yahoo.de>
> Romain, in CDI-1.1 this will even be forbidden by the spec!
>
> LieGrue,
> strub
>
>
>
>
> ----- Original Message -----
> > From: Romain Manni-Bucau <rm...@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*
> >
>
Re: When using the BeanManager to retrieve Beans before the Container is started, non-portable behaviour results!
Posted by Mark Struberg <st...@yahoo.de>.
Romain, in CDI-1.1 this will even be forbidden by the spec!
LieGrue,
strub
----- Original Message -----
> From: Romain Manni-Bucau <rm...@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*
>