Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.이 콘텐츠는 선택한 언어로 제공되지 않습니다.
2.37. Java Object Graph Transformation
- Smooks can transform one Java object graph into another. To do this, it uses the SAX processing model, which means no intermediate object model is constructed. Instead, the source Java object graph is turned directly into a stream of SAX events, which are used to populate the target Java object graph.If you use the HTML Smooks Report Generator tool, you will see that the event stream produced by the source object model is as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Aim the Smooks Java bean resources at this event stream. The Smooks configuration for performing this transformation (smooks-config.xml) is as follows:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The source object model is provided to Smooks via a
org.milyn.delivery.JavaSource
object. Create this object by passing the constructor the source model's root object. The resulting Java Source object is used in theSmooks#filter
method. Here is the resulting code:Copy to Clipboard Copied! Toggle word wrap Toggle overflow