[webbeans-dev] Replacement pattern for Manager.getInstanceByType
Pete Muir
pmuir at redhat.com
Thu May 28 11:22:53 EDT 2009
On 28 May 2009, at 16:14, Pete Muir wrote:
>
> On 28 May 2009, at 16:04, Dan Allen wrote:
>
>> On Thu, May 28, 2009 at 6:35 AM, Pete Muir <pmuir at redhat.com> wrote:
>> 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.
>>
>> Correct, users really should hit this. It's used heavily in tests,
>> for instance in AbstractWebBeans tests.
>
> Hmm, yes you might well want to use this in a standalone, unit test,
> environment as an entry point.
But I guess we will provide a base class that does this sort of stuff,
just like the AbstractTest class you mention.
>
>> It is also used when you are entering from outside the WB
>> environment. You get a handle to manager and lookup the type that
>> gives you entry. For instance, you might look up the Identity
>> component and then invoke some method on it which may trigger a
>> chain of WB injections once "inside".
>
> Yes, this is addon frameworks, not end users.
>
>>
>>
>> -Dan
>>
>> --
>> Dan Allen
>> Senior Software Engineer, Red Hat | Author of Seam in Action
>>
>> http://mojavelinux.com
>> http://mojavelinux.com/seaminaction
>> http://in.relation.to/Bloggers/Dan
>>
>> NOTE: While I make a strong effort to keep up with my email on a
>> daily
>> basis, personal or other work matters can sometimes keep me away
>> from my email. If you contact me, but don't hear back for more than
>> a week,
>> it is very likely that I am excessively backlogged or the message was
>> caught in the spam filters. Please don't hesitate to resend a
>> message if
>> you feel that it did not reach my attention.
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20090528/8b0fa531/attachment.html
More information about the weld-dev
mailing list