Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8797

NameBinding ignored when implementing interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.4, 3.4.9
    • 3.6.0, 4.0.1, 3.5.6, 3.4.11
    • JAX-RS
    • None
    • Unknown

    Description

      I have the following setup:

      1. An interface that carries most of the JAX-RS annotations (@Path, @GET, etc.). This interface is provided by a third party.
      2. A service implementing this interface. This is what I'm developing myself. It does not carry any JAX-RS annotations itself.
      3. A provider (ContainerResponseFilter in my case) that I now want to attach to some of the operations with @NameBinding.

      Obviously, I can only add the @NameBinding annotation to the implementation class. It looks to me like CXF is only checking against the interface carrying the main JAX-RS annotations at runtime, however, so the filter is never called.

      If I remove the NameBinding entirely and run the filter as a global filter, it works as expected, but of course that's not the intent here.

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              jensgr@gmx.net Jens Kleine-Herzbruch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: