@Override protected void configureServlets() { super.configureServlets(); serve("/binder").with(BinderController.class); serve("/findTracksInPlaylist").with(FindTracksInPlaylistController.class); serve("/addPlaylist").with(AddPlaylistController.class); serve("/deletePlaylist").with(DeletePlaylistController.class); serve("/findPlaylists").with(FindPlaylistsController.class); serve("/updatePlaylist").with(UpdatePlaylistController.class); serve("/choosePlaylists").with(ChoosePlaylistController.class); serve("/findTrack").with(FindTrackController.class); serve("/login").with(LoginController.class); serve("/callback").with(CallbackController.class); bind(IBinderDAO.class).to(BinderDAO.class); bind(IAddTrackToPlaylistService.class).to(AddTrackToPlaylistService.class); bind(IToggleAvailibility.class).to(ToggleAvailibility.class); bind(IFindTracksInPlaylistService.class).to(FindTracksInPlaylistService.class); bind(IPlaylistDAO.class).to(PlaylistDAO.class); bind(IManagePlaylistsService.class).to(ManagePlaylistsService.class); bind(ITrackDAO.class).to(TrackDAO.class); bind(ISearchTrackService.class).to(SearchTrackService.class); bind(ILoginService.class).to(LoginService.class); bind(IUserDAO.class).to(UserDAO.class); }
/* * (non-Javadoc) * * @see com.google.inject.servlet.ServletModule#configureServlets() */ @Override protected void configureServlets() { super.configureServlets(); // // Map<String, String> appstatsFilterParams = Maps.newHashMap(); // appstatsFilterParams.put("logMessage", // "Appstats: /admin/appstats/details?time={ID}"); // appstatsFilterParams.put("calculateRpcCosts", "true"); // // filter("/*").through(AppstatsFilter.class, appstatsFilterParams); filter("/*").through(ObjectifyFilter.class); serve("/sign").with(SignGuestbookServlet.class); serve("/test").with(TestServlet.class); // serve("/appstats/*").with(AppstatsServlet.class); }