7 Replies Latest reply on Dec 21, 2012 8:03 AM by Jozef Hartinger

    CDI Extension, @Inject and Interceptors

    Veit Guna Newbie



      I'm using JBoss 7.1.1 Final and currently implementing a CDI Extension. During development I encountered some caveats that I couldn't find in any documentation and cost me some time to figure out.


      1) @Inject for Event<T> and BeanManager (or in general?) doesn't seem to work in Extensions - they're always null. I found out somewhere that you can let inject them as a 2nd parameter in a Observer method.

      2) InterceptorBinding annotations don't seem to work in Extensions.


      Is there any documentation that explicitly points out that some standard functions that work in normal CDI beans don't work in Extensions? Google didn't help me much .