Created
September 26, 2014 15:08
-
-
Save marianogonzalez/0bda832ecfc115cbccfd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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