cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominic Harries (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-2278) Implement serialize method on JaxbAssertions
Date Thu, 11 Jun 2009 11:47:07 GMT
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.


Mime
View raw message