1 package example;2 3 /**4 * The Greeting service returns a simple string.5 */6 public class GreetingImpl implements GreetingAPI {7 private String _greeting = "Hello, world";8 9 /**10 * Configures the greeting.11 */12 public void setGreeting(String greeting)13 {14 _greeting = greeting;15 }16 17 /**18 * Returns the greeting string.19 */20 public String greeting()21 {22 return _greeting;23 }24 }25