<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Yes,<br>
      <br>
      the problem with this is that currently we cannot add a new method
      to the interface - otherwise we break existing implementations of
      the interface. We can either wait for Java 8 or find some other
      way of specifying the priority.<br>
      <br>
      Jozef<br>
      <br>
      On 01/15/2014 12:17 PM, Gunnar Morling wrote:<br>
    </div>
    <blockquote
cite="mid:CADGJaX8LHw+E2=jZ6MKPf_pAS-B7zG7mi8tXs3H3ti6YF1ZNHg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Jozef,
        <div><br>
        </div>
        <div>Thanks for the clarification.</div>
        <div><br>
        </div>
        <div>Would it make sense to add Interceptor#getPriority() in a
          future spec revision and handle such a custom interceptor bean
          as if there was an equivalent annotated interceptor type? As
          it seems its currently not possible to achieve the semantics
          of an annotated interceptor type using a portable extension.</div>
        <div><br>
        </div>
        <div>--Gunnar</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2014/1/15 Jozef Hartinger <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:jharting@redhat.com" target="_blank">jharting@redhat.com</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hi Gunnar,<br>
                <br>
                this is not possible. You can only enable the
                interceptor by adding it to
                AfterTypeDiscovery#getInterceptors() relatively to other
                interceptors.<br>
                <br>
                Jozef
                <div>
                  <div class="h5"><br>
                    <br>
                    On 01/15/2014 10:56 AM, Gunnar Morling wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi,
                      <div><br>
                      </div>
                      <div>Using a CDI portable extension, I'm
                        registering a custom bean which represents an
                        interceptor (by implementing the
                        javax.enterprise.inject.spi.Interceptor
                        interface).</div>
                      <div><br>
                      </div>
                      <div>My question now is how to specify the
                        priority of that interceptor. Intuitively I had
                        expected a method such as
                        Interceptor#getPriority(), but there isn't such
                        method.</div>
                      <div><br>
                      </div>
                      <div>In section&nbsp;9 the spec says extensions could
                        "override the interceptor order defined by the
                        @Priority annotation" and refers to section
                        11.5.2 which introduces
                        AfterTypeDiscovery#getInterceptors(). So I could
                        use this to add my interceptor, but I don't see
                        how I could specify the priority while doing so.</div>
                      <div><br>
                      </div>
                      <div>How can this be achieved?</div>
                      <div><br>
                      </div>
                      <div>Many thanks,</div>
                      <div><br>
                      </div>
                      <div>--Gunnar</div>
                      <div><br>
                      </div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
cdi-dev mailing list
<a moz-do-not-send="true" href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a></pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>