Status: Accepted Owner: dhanji Labels: Type-Defect Priority-High Milestone-Release2.0
New issue 335 by dhanji: Filters/Servlets should only be initialized once http://code.google.com/p/google-guice/issues/detail?id=335 ...even if they appear multiple times in the filter chain. Reported by Rex on the mailing list: Sorry, my fault. ServletContainer is also a filter. My usage: new ServletModule() { @Override protected void configureServlets() { Map<String, String> initParams = Maps.newHashMap(); initParams.put("com.sun.jersey.config.property.packages", Home.class.getPackage().getName()); filterRegex("/(home|logout| login.*)").through(JerseyFilter.class, initParams); } }, If I announce filterRegex("/home", "/logout", "/login.*"), the @Singleton JerseyFilter will initiate() 3 times. It this normal? Thanks, Rex -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-guice-dev?hl=en -~----------~----~----~----~------~----~------~--~---
