[webbeans-dev] Replacement pattern for Manager.getInstanceByType

Pete Muir pmuir at redhat.com
Thu May 28 06:35:31 EDT 2009


Yeah, this is used a lot in the TCK, and maybe a bit in addons which  
enable injection in types WB doesn't know about (?), but I don't think  
users will hit it.

On 28 May 2009, at 09:07, David Allen wrote:

> I think the only real use case was more internal.  The TCK uses it
> heavily, so that is where some careful refactoring is needed.  It  
> would
> seem that the core should only be using it for injection.  Outside of
> these cases, I am hoping it was never used since clearly 299 injection
> would be the correct thing to use.
>
> Other than some complicated refactoring, this should not be a real
> problem.
>
> On Thu, 2009-05-28 at 00:28 -0700, Gavin King wrote:
>> you mean you want to examine the attributes of the Bean object?
>>
>> I dunno - I would recommend against writing code like that.
>>
>> On Wed, May 27, 2009 at 10:39 PM, Nicklas Karlsson <nickarls at gmail.com 
>> > wrote:
>>> On Thu, May 28, 2009 at 7:59 AM, Gavin King <gavin.king at gmail.com>  
>>> wrote:
>>>> What is a factory method? Why would it not be a producer method  
>>>> that injects
>>>> Instance?
>>>
>>> I meant producer method, of course.
>>>
>>> I was just looking for a scenario where you would need to examine  
>>> the
>>> existence of several beans before determining what to actually
>>> produce.
>>>
>>> ---
>>> Nik
>>>
>>
>>
>>
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev




More information about the weld-dev mailing list