/** * Eagerly initialize Locales if necessary. * @see #setLocalesToInitialize */ @Override public void afterPropertiesSet() throws BeansException { if (this.localesToInitialize != null) { for (Locale locale : this.localesToInitialize) { initFactory(locale); } } }
@Override protected View loadView(String viewName, Locale locale) throws Exception { BeanFactory factory = initFactory(locale); try { return factory.getBean(viewName, View.class); } catch (NoSuchBeanDefinitionException ex) { // Allow for ViewResolver chaining... return null; } }
/** * Eagerly initialize Locales if necessary. * @see #setLocalesToInitialize */ @Override public void afterPropertiesSet() throws BeansException { if (this.localesToInitialize != null) { for (Locale locale : this.localesToInitialize) { initFactory(locale); } } }
@Override protected View loadView(String viewName, Locale locale) throws Exception { BeanFactory factory = initFactory(locale); try { return factory.getBean(viewName, View.class); } catch (NoSuchBeanDefinitionException ex) { // Allow for ViewResolver chaining... return null; } }
/** * Eagerly initialize Locales if necessary. * @see #setLocalesToInitialize */ @Override public void afterPropertiesSet() throws BeansException { if (this.localesToInitialize != null) { for (Locale locale : this.localesToInitialize) { initFactory(locale); } } }
@Override protected View loadView(String viewName, Locale locale) throws Exception { BeanFactory factory = initFactory(locale); try { return factory.getBean(viewName, View.class); } catch (NoSuchBeanDefinitionException ex) { // Allow for ViewResolver chaining... return null; } }