bind(JacksonJsonProvider.class).in(Scopes.SINGLETON);
}
});
ResourceConfig rc = new PackagesResourceConfig("ngdemo.web");
IoCComponentProviderFactory ioc = new GuiceComponentProviderFactory(rc, injector);
server = GrizzlyServerFactory.createHttpServer(BASE_URI + "web/", rc, ioc);
System.out.println(String.format("Jersey app started with WADL available at "
+ "%srest/application.wadl\nTry out %sngdemo\nHit enter to stop it...",
BASE_URI, BASE_URI));