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@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#L82 This 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@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@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev

_______________________________________________
forge-dev mailing list
forge-dev@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."