This content has been marked as final.
Show 1 reply
-
1. Re: Producer in via extension registered beans not found
jharting Mar 7, 2012 2:33 AM (in response to dastraub)If you want to add a class that would not be normally scanned, do that using BeforeBeanDiscovery.addAnnotatedType(). The class will be scanned for metadata as you would expect (including producer methods).
You can also use AfterBeanDiscovery.addBean() to register beans directly. In that case you need to provide an implementation of the Bean interface that represents the producer method (you'll have to implement the create() and destroy() methods to lookup the hosting bean a invoke a method).