Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.71 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Is it possible to integrate Spring MVC with Guice?
  2. /**
  3.  * This implementation calls {@link #initStrategies}.
  4.  */
  5. @Override
  6. protected void onRefresh(ApplicationContext context) {
  7.     initStrategies(context);
  8. }
  9.  
  10. /**
  11.  * Initialize the strategy objects that this servlet uses.
  12.  * <p>May be overridden in subclasses in order to initialize
  13.      * further strategy objects.
  14.  */
  15. protected void initStrategies(ApplicationContext context) {
  16.     initMultipartResolver(context);
  17.     initLocaleResolver(context);
  18.     initThemeResolver(context);
  19.     initHandlerMappings(context);
  20.     initHandlerAdapters(context);
  21.     initHandlerExceptionResolvers(context);
  22.     initRequestToViewNameTranslator(context);
  23.     initViewResolvers(context);
  24. }