Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Path("/")
public class HelloWorldComponent {
private HelloWorldInterface helloWorldBinding;
@GET
@Path("/sayHello")
@Produces("text/plain")
public String sayHelloFromBinding() {
return helloWorldBinding.sayHello("s");
}
public void setHelloWorldBinding(HelloWorldInterface helloWorldBinding) {
this.helloWorldBinding = helloWorldBinding;
}
public HelloWorldInterface getHelloWorldBinding() {
return this.helloWorldBinding;
}
public static interface HelloWorldInterfac {
public String sayHello(String s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.