Package example

Source Code of example.Pojo

package example;

import org.milyn.Smooks;
import example.model.Order;

public class Pojo
{
    private Smooks smooks;
    private String input;
   
    public Pojo(final Smooks smooks, final String input)
    {
        this.smooks = smooks;
        this.input = input;
    }
   
    public void start()
    {
        System.out.println("Pojo start");
        Order order = filter();
        ExampleUtil.printOrder(order);
    }
   
    public Order filter()
    {
        return ExampleUtil.performFiltering(input, smooks);
    }
   
    public void stop()
    {
        System.out.println("Pojo stop");
        smooks.close();
    }
   
}
TOP

Related Classes of example.Pojo

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.