Created
December 2, 2016 04:32
-
-
Save Robinyo/8e8b7b348cd2ef3a5966c137574dc491 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
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