Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Basic JAX-RS injection
public class JAXRSInjectionTestResource{
//Assume that Token has a public ctor with a String param
private Token token;
public CustDetails fetch(@PathParam("id") String custID){
//this method will be invoked by a HTTP GET on http://host:port/context-root/test/42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment