类 ViewResolverComposite

java.lang.Object
cn.taketoday.core.OrderedSupport
cn.taketoday.web.view.ViewResolverComposite
所有已实现的接口:
cn.taketoday.beans.factory.Aware, cn.taketoday.beans.factory.InitializingBean, cn.taketoday.context.ApplicationContextAware, cn.taketoday.core.Ordered, ViewResolver
直接已知子类:
ServletViewResolverComposite

public class ViewResolverComposite extends cn.taketoday.core.OrderedSupport implements ViewResolver, cn.taketoday.core.Ordered, cn.taketoday.beans.factory.InitializingBean, cn.taketoday.context.ApplicationContextAware
A ViewResolver that delegates to others.
作者:
Sebastien Deleuze, Rossen Stoyanchev, Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • ViewResolverComposite

      public ViewResolverComposite()
  • 方法详细资料

    • setViewResolvers

      public void setViewResolvers(List<ViewResolver> viewResolvers)
      Set the list of view viewResolvers to delegate to.
    • getViewResolvers

      public List<ViewResolver> getViewResolvers()
      Return the viewResolvers
    • setApplicationContext

      public void setApplicationContext(cn.taketoday.context.ApplicationContext applicationContext) throws cn.taketoday.beans.BeansException
      指定者:
      setApplicationContext 在接口中 cn.taketoday.context.ApplicationContextAware
      抛出:
      cn.taketoday.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      指定者:
      afterPropertiesSet 在接口中 cn.taketoday.beans.factory.InitializingBean
      抛出:
      Exception
    • resolveViewName

      @Nullable public View resolveViewName(String viewName, Locale locale) throws Exception
      从接口复制的说明: ViewResolver
      Resolve the given view by name.

      Note: To allow for ViewResolver chaining, a ViewResolver should return null if a view with the given name is not defined in it. However, this is not required: Some ViewResolvers will always attempt to build View objects with the given name, unable to return null (rather throwing an exception when View creation failed).

      指定者:
      resolveViewName 在接口中 ViewResolver
      参数:
      viewName - name of the view to resolve
      locale - the Locale in which to resolve the view. ViewResolvers that support internationalization should respect this.
      返回:
      the View object, or null if not found (optional, to allow for ViewResolver chaining)
      抛出:
      Exception - if the view cannot be resolved (typically in case of problems creating an actual View object)