Cocoon 3
  1. Cocoon 3
  2. COCOON3-4

Provide an XML generator based on Bean(s)/POJOs

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha-2
    • Fix Version/s: 3.0.0-alpha-2
    • Component/s: cocoon-pipeline
    • Labels:
      None

      Description

      A Bean(s)/POJO(s) generator is a starter component for the pipeline that streams sax events, generated reading/intrsopecting the Object input, to an xml consumer.
      It could be useful when Objects are retrieved, i.e. from a persistence engine, and they have to be streamed in an XML format to implement a Rest API.

        Activity

        Hide
        Reinhard Poetz added a comment -
        Thanks for your patch. After creating a new module 'cocoon-optional' I've added it to it.
        Show
        Reinhard Poetz added a comment - Thanks for your patch. After creating a new module 'cocoon-optional' I've added it to it.
        Hide
        Simone Tripodi added a comment -
        Yes of course you're right and I agree with you! If this patch will be accepted as "proof of concept", once the cocoon-pipeline-optional will be created I'll create a new patch for the new package
        Show
        Simone Tripodi added a comment - Yes of course you're right and I agree with you! If this patch will be accepted as "proof of concept", once the cocoon-pipeline-optional will be created I'll create a new patch for the new package
        Hide
        Reinhard Poetz added a comment -
        I think we should create a cocoon-pipeline-optional module that contains stuff that requires 3-party dependencies. There we should also set the scope of the dependencies to 'provided'. This prevents Maven from pulling in all libraries automatically.
        Show
        Reinhard Poetz added a comment - I think we should create a cocoon-pipeline-optional module that contains stuff that requires 3-party dependencies. There we should also set the scope of the dependencies to 'provided'. This prevents Maven from pulling in all libraries automatically.
        Hide
        Simone Tripodi added a comment -
        The provided patch implements a BeanGenerator, using the commons-betwixt library.
        I know that one of the main scopes of cocoon3 pipeline is limiting the dependencies, but the apache's commons-betwixt already implements a SAX writer that streams xml events to a content handler.
        Moreover, as reported on http://commons.apache.org/betwixt/guide/output.html (on the bottom), "SAXBeanWriter pushes events to a SAX content handler. This allows Betwixt to efficiently participate as a content generator in SAX-based pipelines such as cocoon"
        Show
        Simone Tripodi added a comment - The provided patch implements a BeanGenerator, using the commons-betwixt library. I know that one of the main scopes of cocoon3 pipeline is limiting the dependencies, but the apache's commons-betwixt already implements a SAX writer that streams xml events to a content handler. Moreover, as reported on http://commons.apache.org/betwixt/guide/output.html (on the bottom), "SAXBeanWriter pushes events to a SAX content handler. This allows Betwixt to efficiently participate as a content generator in SAX-based pipelines such as cocoon"

          People

          • Assignee:
            Reinhard Poetz
            Reporter:
            Simone Tripodi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development