Marshaller interface and implementation.
marshaller接口和实现。
Create a marshaller.
创建一个编组器。
Now, you need to run your marshaller testing class.
现在需要运行编组程序测试类。
Listing 8 shows the JSON generated by the marshaller.
清单8显示编组程序生成的json。
In such a case, using a marshaller can greatly simplify the task.
在这种情况下,使用编组器可以显著简化这个任务。
Setting up a remote call (finding Home interface for example, setting up marshaller, etc.)
构建远程调用(例如查找Home接口,构建编组程序(marshaller)等。)
Each Marshaller can ultimately contain a number of service-methods (such as, service1).
每个Marshaller最终都包含一定数量的服务方法(例如,service1)。
MarshallingHttpMessageConverter Read/write XML data using Spring's marshaller/un-marshaller.
MarshallingHttpMessageConverter 使用 Spring 的 marshaller/un-marshaller 读取/编写 XML 数据。
You can set several options, such as the encoding of the output file, all with the Marshaller object.
您可以设置一些选项,比如说输出文件的编写,所有设置都在Marshaller对象中。
The only thing we need to look at is the dependency from the BDMockup class to the Marshaller interface.
我们需要关注的唯一一件事就是 BDMockup 类对 Marshaller 接口的依赖性。
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和业务接口。
As the element will be created at a later stage, when we apply Asset 1, we add another template parameter called "marshaller" of type "class" (Figures 15 and 16).
当在后期应用资产1创建元素时,我们添加类型“类”的另一个模版参数,名为“ marshaller ”(图15和16)。
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方法。
There is no need to further specify the Marshaller interface because we will get prompted to specify the location of this class by the wizard when the pattern is applied.
没有必要去进一步指定Marshaller接口,因为应用模式时向导会提示我们指定这个类的位置。