[forge-dev] non-CDI object hook into CDI

Lincoln Baxter, III lincolnbaxter at gmail.com
Mon Jan 7 22:28:10 EST 2013


In CDI 1.1, you will be able to use CDI.current()


On Mon, Jan 7, 2013 at 10:27 PM, Lincoln Baxter, III <
lincolnbaxter at gmail.com> wrote:

> Hey Thomas, you should take a look at the BeanManagerProvider API that was
> in Seam Solder:
> https://github.com/seam/solder/blob/develop/api/src/main/java/org/jboss/solder/beanManager/BeanManagerLocator.java#L82This approach has been used a bunch of times. Including Solder shouldn't be
> too intrusive. You could also just copy that particular feature.
>
>
> On Mon, Jan 7, 2013 at 8:15 PM, George Gastaldi <ggastald at redhat.com>wrote:
>
>> I'd say you may want to use @Produces and Extensions where applicable
>>
>> Em 07/01/2013, às 19:51, Thomas Frühbeck <fruehbeck at aon.at> escreveu:
>>
>> > Hi,
>> > I have objects under control of a non-CDI framework and want to hook
>> > into CDI.
>> >
>> > What is the shortest / most elegant / best way hook into CDI _aside_ of
>> > (BeanManager) InitialContext.lookup()?
>> >
>> > Thanks,
>> > Thomas
>> > _______________________________________________
>> > forge-dev mailing list
>> > forge-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
>



-- 
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20130107/bbb5d143/attachment.html 


More information about the forge-dev mailing list