KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > GreetingImpl


1 package example;
2
3 /**
4  * The Greeting service returns a simple string.
5  */

6 public class GreetingImpl implements GreetingAPI {
7   private String JavaDoc _greeting = "Hello, world";
8
9   /**
10    * Configures the greeting.
11    */

12   public void setGreeting(String JavaDoc greeting)
13   {
14     _greeting = greeting;
15   }
16   
17   /**
18    * Returns the greeting string.
19    */

20   public String JavaDoc greeting()
21   {
22     return _greeting;
23   }
24 }
25
Popular Tags