You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dominic Harries (JIRA)" <ji...@apache.org> on 2009/06/11 13:47:07 UTC

[jira] Created: (CXF-2278) Implement serialize method on JaxbAssertions

Implement serialize method on JaxbAssertions
--------------------------------------------

                 Key: CXF-2278
                 URL: https://issues.apache.org/jira/browse/CXF-2278
             Project: CXF
          Issue Type: Improvement
          Components: JAXB Databinding
    Affects Versions: 2.2.2
            Reporter: Dominic Harries
             Fix For: 2.2.3, 2.3
         Attachments: JaxbAssertion.patch

The JaxbAssertion class inherits it's serialize method from PrimitiveAssertion which unhelpfully returns nothing.

This patch implements the serialize method using a JAXB marshaller.  It uses similar code to JaxbAssertionBuilder to get a JAXBContext.  It sets the "jaxb.fragment" flag of the marshaller so that the assertions can be included in larger xml documents (this is supported by all compliant implementations, see http://java.sun.com/javase/6/docs/api/javax/xml/bind/Marshaller.html).

The patch builds cleanly against both 2.2.2 and the current trunk.

Please include "from University of Southampton IT Innovation Centre" in the change log.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2278) Implement serialize method on JaxbAssertions

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-2278:
-----------------------------

    Fix Version/s:     (was: 2.3)
                   2.1.6

> Implement serialize method on JaxbAssertions
> --------------------------------------------
>
>                 Key: CXF-2278
>                 URL: https://issues.apache.org/jira/browse/CXF-2278
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>    Affects Versions: 2.2.2
>            Reporter: Dominic Harries
>            Assignee: Daniel Kulp
>             Fix For: 2.1.6, 2.2.3
>
>         Attachments: JaxbAssertion.patch
>
>
> The JaxbAssertion class inherits it's serialize method from PrimitiveAssertion which unhelpfully returns nothing.
> This patch implements the serialize method using a JAXB marshaller.  It uses similar code to JaxbAssertionBuilder to get a JAXBContext.  It sets the "jaxb.fragment" flag of the marshaller so that the assertions can be included in larger xml documents (this is supported by all compliant implementations, see http://java.sun.com/javase/6/docs/api/javax/xml/bind/Marshaller.html).
> The patch builds cleanly against both 2.2.2 and the current trunk.
> Please include "from University of Southampton IT Innovation Centre" in the change log.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-2278) Implement serialize method on JaxbAssertions

Posted by "Dominic Harries (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominic Harries updated CXF-2278:
---------------------------------

    Attachment: JaxbAssertion.patch

> Implement serialize method on JaxbAssertions
> --------------------------------------------
>
>                 Key: CXF-2278
>                 URL: https://issues.apache.org/jira/browse/CXF-2278
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>    Affects Versions: 2.2.2
>            Reporter: Dominic Harries
>             Fix For: 2.2.3, 2.3
>
>         Attachments: JaxbAssertion.patch
>
>
> The JaxbAssertion class inherits it's serialize method from PrimitiveAssertion which unhelpfully returns nothing.
> This patch implements the serialize method using a JAXB marshaller.  It uses similar code to JaxbAssertionBuilder to get a JAXBContext.  It sets the "jaxb.fragment" flag of the marshaller so that the assertions can be included in larger xml documents (this is supported by all compliant implementations, see http://java.sun.com/javase/6/docs/api/javax/xml/bind/Marshaller.html).
> The patch builds cleanly against both 2.2.2 and the current trunk.
> Please include "from University of Southampton IT Innovation Centre" in the change log.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-2278) Implement serialize method on JaxbAssertions

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-2278:
--------------------------------

    Assignee: Daniel Kulp

> Implement serialize method on JaxbAssertions
> --------------------------------------------
>
>                 Key: CXF-2278
>                 URL: https://issues.apache.org/jira/browse/CXF-2278
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>    Affects Versions: 2.2.2
>            Reporter: Dominic Harries
>            Assignee: Daniel Kulp
>             Fix For: 2.2.3, 2.3
>
>         Attachments: JaxbAssertion.patch
>
>
> The JaxbAssertion class inherits it's serialize method from PrimitiveAssertion which unhelpfully returns nothing.
> This patch implements the serialize method using a JAXB marshaller.  It uses similar code to JaxbAssertionBuilder to get a JAXBContext.  It sets the "jaxb.fragment" flag of the marshaller so that the assertions can be included in larger xml documents (this is supported by all compliant implementations, see http://java.sun.com/javase/6/docs/api/javax/xml/bind/Marshaller.html).
> The patch builds cleanly against both 2.2.2 and the current trunk.
> Please include "from University of Southampton IT Innovation Centre" in the change log.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-2278) Implement serialize method on JaxbAssertions

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2278.
------------------------------

    Resolution: Fixed

> Implement serialize method on JaxbAssertions
> --------------------------------------------
>
>                 Key: CXF-2278
>                 URL: https://issues.apache.org/jira/browse/CXF-2278
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>    Affects Versions: 2.2.2
>            Reporter: Dominic Harries
>            Assignee: Daniel Kulp
>             Fix For: 2.2.3, 2.3
>
>         Attachments: JaxbAssertion.patch
>
>
> The JaxbAssertion class inherits it's serialize method from PrimitiveAssertion which unhelpfully returns nothing.
> This patch implements the serialize method using a JAXB marshaller.  It uses similar code to JaxbAssertionBuilder to get a JAXBContext.  It sets the "jaxb.fragment" flag of the marshaller so that the assertions can be included in larger xml documents (this is supported by all compliant implementations, see http://java.sun.com/javase/6/docs/api/javax/xml/bind/Marshaller.html).
> The patch builds cleanly against both 2.2.2 and the current trunk.
> Please include "from University of Southampton IT Innovation Centre" in the change log.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.