@Override protected View loadView(String viewName, Locale locale) throws BeansException { BeanFactory factory = initFactory(); try { return factory.getBean(viewName, View.class); } catch (NoSuchBeanDefinitionException ex) { // Allow for ViewResolver chaining... return null; } }
/** * Pre-initialize the factory from the XML file. * Only effective if caching is enabled. */ @Override public void afterPropertiesSet() throws BeansException { if (isCache()) { initFactory(); } }
@Override protected View loadView(String viewName, Locale locale) throws BeansException { BeanFactory factory = initFactory(); try { return factory.getBean(viewName, View.class); } catch (NoSuchBeanDefinitionException ex) { // Allow for ViewResolver chaining... return null; } }
/** * Pre-initialize the factory from the XML file. * Only effective if caching is enabled. */ @Override public void afterPropertiesSet() throws BeansException { if (isCache()) { initFactory(); } }
@Override protected View loadView(String viewName, Locale locale) throws BeansException { BeanFactory factory = initFactory(); try { return factory.getBean(viewName, View.class); } catch (NoSuchBeanDefinitionException ex) { // Allow for ViewResolver chaining... return null; } }
/** * Pre-initialize the factory from the XML file. * Only effective if caching is enabled. */ @Override public void afterPropertiesSet() throws BeansException { if (isCache()) { initFactory(); } }