Uploaded image for project: 'Woden'
  1. Woden
  2. WODEN-134

DescriptionElement.toComponent() should check for changes to the infoset between invocations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Parser
    • None

    Description

      By design, DescriptionElement.toComponent() is invoked to generate the Component view of the WSDL infoset constructed either through WSDLReader, or directly via the infoset API.

      In the latter case, a possible common usage scenario is :

      1. Create infoset (Element view, from a parent DescriptionElement, say "descElement")
      2. Generate the component view with an instance descElement.toComponent().
      OK so far.
      3. Change the model via the Element API (really just a continuation of step 1).
      4. Regenerate the component view as in (2)

      Currently, (4) will do nothing, leaving the component view in an inconsistent state. The ComponentModelBuilder (which handles toComponent()), sets a flag such that it runs once for any given DescriptionElement - subsequent calls are ignored. There is no way to clear this flag via the API, and the only workaround I have found is to completely rebuild the element hierachy with a fresh DescriptionElement.

      There is already a TODO in the code alluding to the problem, but hitherto no covering JIRA.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gturrell Graham Turrell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: