In such a case, using a marshaller can greatly simplify the task.
在这种情况下,使用编组器可以显着简化这个任务。
The MarshallerFactory is responsible for the instantiation of a marshaller which implements the Marshaller interface.
MarshallerFactory 负责 marshaller的实例化,它实现了Marshaller接口。
It also shows dependencies on other classes, our marshaller and the business interface, as described in the two previous patterns.
它也显示了对其它类的依赖性,如前面描述的两个模式中的marshaller和业务接口。
Now, you need to run your marshaller testing class.
现在需要运行编组程序测试类。
Then, you use the marshaller object (which was instantiated by Spring's dependency injection) to invoke the marshal method. This method requires two parameters.
首先,您获得一个指向simplebean . xml的对象,然后,您使用编组器对象(通过Spring的依赖项注入实例化)调用marshal方法。