Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1004 Implement JSR-311 1.0
  3. CXF-1425

Enhancement to JAX-RS spring configuration for registering providers

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1
    • JAX-RS
    • None
    • Novice

    Description

      Enhancement to allow a list of custom providers be specified for a spring configured JAX-RS server. Syntax as below:

      <jaxrs:server id="bookservice"
      address="/">
      <jaxrs:serviceBeans>
      <ref bean="bookstore"/>
      </jaxrs:serviceBeans>
      <jaxrs:entityProviders>
      <bean class="org.apache.cxf.jaxrs.provider.JAXBElementProvider"/>
      <bean class="org.apache.cxf.jaxrs.provider.StringProvider"/>
      <bean class="org.apache.cxf.jaxrs.provider.BadgerFishProvider"/>
      </jaxrs:entityProviders>
      </jaxrs:server>
      <bean id="bookstore" scope="prototype" class="org.apache.cxf.systest.jaxrs.BookStore">
      </bean>

      This list will overwrite the default Entity Provider list and will be ordered as usual.

      Attachments

        1. CXF-1425.patch
          30 kB
          Barry Fitzgerald
        2. CXF-1425.patch
          30 kB
          Barry Fitzgerald

        Activity

          People

            dkulp Daniel Kulp
            barfitzgerald Barry Fitzgerald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified