[
http://jira.jboss.com/jira/browse/JBESB-562?page=comments#action_12363005 ]
Daniel Bevenius commented on JBESB-562:
---------------------------------------
After a discussion with Tom we decided to add another property : "root-node".
This will take an xpath expression that and it should identify the node that XStream
should consider the root node.
I'll update the MessageActionGuide with these changes.
Add additional optional aliases XStreamToObject converter
---------------------------------------------------------
Key: JBESB-562
URL:
http://jira.jboss.com/jira/browse/JBESB-562
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Rosetta, Transformation Service
Affects Versions: 4.2 Milestone Release 2
Reporter: Daniel Bevenius
Assigned To: Daniel Bevenius
Priority: Trivial
Fix For: 4.2
Attachments: XStreamToObject.java, XStreamToObjectUnitTest.java
I needed the ability to specify extra aliases for XStreamToObject and from what I can see
one can only specify one alias, which is for the main object in the xml.
This is a suggestion of what the configuration could look like:
<Action name="doCustomer" processor="XStreamObject">
<property name="class-alias" value="Customer" />
<property name="incoming-type" value="CustomerProcessor"
/>
<property name="exclude-package" value="false" />
<!-- Optional list of extra aliases to add to XStream -->
<aliases>
<alias name="aliasName" class="className" />
<alias name="aliasName" class="className" />
...
</aliases>
</Action>
I have check in this suggestion here:
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/workspace/dbevenius/
The classes of interest are:
XStreamToObjectUnitTest
XStreamToObject
/Daniel
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira