*/
public static void main(String[] args) {
try {
System.out.println("JAX-RS Type Injection Jersey Example App");
final HttpServer server = GrizzlyHttpServerFactory.createHttpServer(BASE_URI, create());
System.out.println(String.format(
"Application started.%n"
+ "To test injection into a programmatic resource, try out:%n %s%s%s%n"
+ "To test instance injection into an annotated resource, try out:%n %s%s%s%n"
+ "To test method injection into an annotated resource, try out:%n %s%s%s%n"
+ "Hit enter to stop it...",
BASE_URI, ROOT_PATH_PROGRAMMATIC, "?q1=<value_1>&q2=<value_2>&q2=<value_3>",
BASE_URI, ROOT_PATH_ANNOTATED_INSTANCE, "?q1=<value_1>&q2=<value_2>&q2=<value_3>",
BASE_URI, ROOT_PATH_ANNOTATED_METHOD, "?q1=<value_1>&q2=<value_2>&q2=<value_3>"));
System.in.read();
server.stop();
} catch (IOException ex) {
Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);
}
}