Skip to content

Instantly share code, notes, and snippets.

@Robinyo
Created December 2, 2016 04:32
Show Gist options
  • Save Robinyo/8e8b7b348cd2ef3a5966c137574dc491 to your computer and use it in GitHub Desktop.
Save Robinyo/8e8b7b348cd2ef3a5966c137574dc491 to your computer and use it in GitHub Desktop.
package org.robferguson.resteasy.examples.helloworld;
import java.util.HashSet;
import java.util.Set;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import org.robferguson.resteasy.examples.helloworld.resource.MessageResource;
@ApplicationPath("")
public class HelloWorldApplication extends Application {
public HelloWorldApplication() {}
@Override
public Set<Object> getSingletons() {
HashSet<Object> set = new HashSet<Object>();
set.add(new MessageResource());
return set;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment