Search in sources :

Example 1 with BeanNameViewResolver

use of cn.taketoday.web.view.BeanNameViewResolver in project today-framework by TAKETODAY.

the class WebMvcAutoConfiguration method beanNameViewResolver.

@Component
@ConditionalOnBean(View.class)
@ConditionalOnMissingBean
public BeanNameViewResolver beanNameViewResolver() {
    BeanNameViewResolver resolver = new BeanNameViewResolver();
    resolver.setOrder(Ordered.LOWEST_PRECEDENCE - 10);
    return resolver;
}
Also used : BeanNameViewResolver(cn.taketoday.web.view.BeanNameViewResolver) ConditionalOnBean(cn.taketoday.context.condition.ConditionalOnBean) ConditionalOnMissingBean(cn.taketoday.context.condition.ConditionalOnMissingBean) Component(cn.taketoday.lang.Component)

Example 2 with BeanNameViewResolver

use of cn.taketoday.web.view.BeanNameViewResolver in project today-framework by TAKETODAY.

the class ViewResolverRegistry method beanName.

/**
 * Register a bean name view resolver that interprets view names as the names
 * of {@link cn.taketoday.web.view.View} beans.
 */
public void beanName() {
    BeanNameViewResolver resolver = new BeanNameViewResolver();
    viewResolvers.add(resolver);
}
Also used : BeanNameViewResolver(cn.taketoday.web.view.BeanNameViewResolver)

Example 3 with BeanNameViewResolver

use of cn.taketoday.web.view.BeanNameViewResolver in project today-infrastructure by TAKETODAY.

the class ViewResolverRegistry method beanName.

/**
 * Register a bean name view resolver that interprets view names as the names
 * of {@link cn.taketoday.web.view.View} beans.
 */
public void beanName() {
    BeanNameViewResolver resolver = new BeanNameViewResolver();
    viewResolvers.add(resolver);
}
Also used : BeanNameViewResolver(cn.taketoday.web.view.BeanNameViewResolver)

Example 4 with BeanNameViewResolver

use of cn.taketoday.web.view.BeanNameViewResolver in project today-infrastructure by TAKETODAY.

the class WebMvcAutoConfiguration method beanNameViewResolver.

@Component
@ConditionalOnBean(View.class)
@ConditionalOnMissingBean
public BeanNameViewResolver beanNameViewResolver() {
    BeanNameViewResolver resolver = new BeanNameViewResolver();
    resolver.setOrder(Ordered.LOWEST_PRECEDENCE - 10);
    return resolver;
}
Also used : BeanNameViewResolver(cn.taketoday.web.view.BeanNameViewResolver) ConditionalOnBean(cn.taketoday.context.condition.ConditionalOnBean) ConditionalOnMissingBean(cn.taketoday.context.condition.ConditionalOnMissingBean) Component(cn.taketoday.lang.Component)

Aggregations

BeanNameViewResolver (cn.taketoday.web.view.BeanNameViewResolver)4 ConditionalOnBean (cn.taketoday.context.condition.ConditionalOnBean)2 ConditionalOnMissingBean (cn.taketoday.context.condition.ConditionalOnMissingBean)2 Component (cn.taketoday.lang.Component)2