1 Reply Latest reply on Nov 22, 2011 6:44 PM by alesj

    Disable Decorators at runtime

    nsn

      Hi!


      I managed to solve most of the problem described here, hence a new topic for the remaining problem:


      Is there a way to enable/disable @Decorators at runtime or during deployment? I can't just veto() them in my extension's




      @Observes ProcessAnnotatedType<T>





      method because the container will complain about a missing bean while parsing the


      <decorators>...</decorators>



      section of the beans.xml


      any ideas?

        • 1. Re: Disable Decorators at runtime
          alesj

          Hmmm, the first thing that comes to my mind would be a more configurable decorator (one that could actually not decorate, if configured as such -- if this is doable), which you then enable/disable/modify wrt Extension.