2 Replies Latest reply on May 24, 2011 8:21 AM by Jozef Hartinger

    Injecting pre-CDI class

    Brian Hiles Newbie

      OK. I've been searching for an answer on this question for a few days and either I'm not seeing the forest for the trees, or this cannot be done.


      I have the need to inject classes from a library (jar) that was developed before CDI was created. I need to be able to inject a class from this library into a CDI capable application. The problem is I can't crack the library and inject the beans.xml file. Is there any way to do this? It is being done now using Spring DI and I'm trying to find a way to do it via CDI.


      I've seen posts like this one that only seem to confirm that this cannot be done.


      If it cannot, I think it is a big oversight. I'd love to be able to modify a beans.xml file in the parent application to allow this to happen.


      Thanks.