Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 62537 invoked from network); 25 Sep 2010 03:22:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Sep 2010 03:22:04 -0000 Received: (qmail 30551 invoked by uid 500); 25 Sep 2010 03:22:04 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 30411 invoked by uid 500); 25 Sep 2010 03:22:02 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 30403 invoked by uid 500); 25 Sep 2010 03:22:02 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 30400 invoked by uid 99); 25 Sep 2010 03:22:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Sep 2010 03:22:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Sep 2010 03:22:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8P3LfW7007032 for ; Sat, 25 Sep 2010 03:21:41 GMT Message-ID: <27955667.31271285384901053.JavaMail.jira@thor> Date: Fri, 24 Sep 2010 23:21:41 -0400 (EDT) From: "Willem Jiang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-3154) [XStream] Custom Xstream driver In-Reply-To: <7926745.30591285335882249.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-3154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Willem Jiang resolved CAMEL-3154. --------------------------------- Fix Version/s: 2.5.0 Resolution: Fixed Applied patch with thanks to Henryk. > [XStream] Custom Xstream driver > ------------------------------- > > Key: CAMEL-3154 > URL: https://issues.apache.org/activemq/browse/CAMEL-3154 > Project: Apache Camel > Issue Type: Improvement > Reporter: Henryk Konsek > Assignee: Willem Jiang > Priority: Trivial > Fix For: 2.5.0 > > Attachments: xstream_custom_driver.patch > > > AbstractXStreamWrapper#createXStream uses hardcoded default XStream constructor. Such design makes impossible to set custom HierarchicalStreamDriver to the XStream instance. > It would be nice to provide an ability to configure AbstractXStreamWrapper with optional HierarchicalStreamDriver instance. > I created patch which adds AbstractXStreamWrapper#xstreamDriver property (+test). > Patch also adds XML attribute 'driverRef' to Spring configuration (org.apache.camel.model.dataformat.XStreamDataFormat). However this new attribute of Spring DSL doesn't work because I got no idea how to wire existing Spring bean into the created dataFormat instance (since org.apache.camel.model.dataformat.XStreamDataFormat is Spring-unaware). > Could somebody take a look at it, fix Spring DSL support and probably commit it to the codebase? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.