XFire

Documentation only works for one service

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.3, 1.2.4
  • Fix Version/s: 1.2.5
  • Component/s: Core
  • Labels:
    None
  • Environment:
    Mac OS X (Intel) 10.4.8, Java 1.5.0_06
  • Number of attachments :
    1

Description

If I have two services, Service1 and Service2, and I create Service1.doc.xml and Service2.doc.xml, the doc for Service1 will be used for both. The reason is that ObjectServiceFactory only has a single instance of DocumentationProvider which is re-used for all services.

Activity

Hide
Tomasz Sztelak added a comment -

Can you tell me how you are creating services ? I just run test on one of ours examples and documentation for multiple services works fine.

Show
Tomasz Sztelak added a comment - Can you tell me how you are creating services ? I just run test on one of ours examples and documentation for multiple services works fine.
Hide
Matt Solnit added a comment -

Hi Tomasz. Sorry, that was my mistake. The problem actually only occurs if I have Service1.doc.xml and no Service2.doc.xml. The doc in Service1.doc.xml will be used for any services that have no doc of their own.

This is much easier to work around, but still an issue IMO .

I'll attach a sample test case for convenience.

Show
Matt Solnit added a comment - Hi Tomasz. Sorry, that was my mistake. The problem actually only occurs if I have Service1.doc.xml and no Service2.doc.xml. The doc in Service1.doc.xml will be used for any services that have no doc of their own. This is much easier to work around, but still an issue IMO . I'll attach a sample test case for convenience.
Hide
Matt Solnit added a comment -

Sample test app.

Show
Matt Solnit added a comment - Sample test app.
Hide
Tomasz Sztelak added a comment -

Fixed in svn

Show
Tomasz Sztelak added a comment - Fixed in svn

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: