// HelloBiomobyWorldImpl.java
//
//    Created: August 2005
//
// This file is a component of the BioMoby project.
// Copyright Martin Senger (martin.senger@gmail.com).
//

package org.jmoby.tutorial.service;

import net.jmoby.samples.HelloBiomobyWorldSkel;
import org.biomoby.shared.MobyException;
import org.biomoby.shared.parser.MobyPackage;
import org.biomoby.shared.parser.MobyJob;
import org.biomoby.shared.datatypes.*;

/**
 * The first example of a BioMoby service. <p>
 *
 * The service extends generated skeleton and implements the simplest
 * business logic - saying Hello to the world. It needs to override
 * just one method - {@link #processIt(MobyJob,MobyJob,MobyPackage)
 * processIt} - that is called as many times as many queries are in
 * one client request. <p>
 *
 * Here is the whole code of this service implementation:
 * <pre>
 * public class HelloBiomobyWorldImpl
 *   extends HelloBiomobyWorldSkel {
 *
 *   public void processIt (MobyJob request,
 *                          MobyJob response,
 *                          MobyPackage outputContext)
 *   throws MobyException {
 *     set_greeting (response, new MobyString ("Hello, World!"));
 *   }
 * }
 </pre>
 *
 * @author <A HREF="mailto:martin.senger@gmail.com">Martin Senger</A>
 * @version $Id: HelloBiomobyWorldImpl.java,v 1.5 2006/04/29 21:22:30 senger Exp $
 */

public class HelloBiomobyWorldImpl
    extends HelloBiomobyWorldSkel {

    public void processIt (MobyJob request,
			   MobyJob response,
			   MobyPackage outputContext)
	throws MobyException {
 	set_greeting (response, new MobyString ("Hello, World! "));
    }
}

