This is not needed because the order in which the serve() clauses appear in your module is the startup order. Dhanji.
On Fri, Jul 24, 2009 at 7:27 PM, Hubert Yang <[email protected]> wrote: > > Briefly, we could set initialization parameters of servlet/filter by > feeding a Map object to guice when loading/doing injection: > ----------------- > ... > filter("*.jsp", "*.action").through(MyFilter.class, getMyFilterParams > ()); > ... > private static Map<String, String> getMyFilterParams() { > Map<String, String> params = new HashMap<String, String>(); > params.put("para1", "value1"); > params.put("para2", "value2"); > return params; > } > ----------------- > > Since the "load-on-startup" feature is not a parameter of the servlet > (correct me if I am wrong), so I can not use the same approach. > > I wonder if there is a workaround for this, or just load the servlet > class as eager singleton class? > > Any ideas are appreciated. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" 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?hl=en -~----------~----~----~----~------~----~------~--~---
