0 Replies Latest reply on Sep 26, 2011 4:35 PM by arnoldus

    XML file registering Interceptors on classes or methods missing?

    arnoldus

      Perhaps someone can help me.
      I would like to use CDI to intercept.
      I read the weld documentation and faqs, but I couldn't find any file like ejb-jar.xml for ejb to define which method/class is intercepted by which interceptor.
      beans.xml seems to be the wrong file for that.
      Without such a file - given only the option to use an Annotation @Interceptor(s) - there ist no possibility to define such a connection without changing the source code of the intercepted
      class/method adding Annotations.
      That is contrary to the aspect oriented/orthogonal approach of interceptors, so there ist probably a way ?!


      Thanks in advance.