类 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
-
字段概要
字段从类继承的字段 cn.taketoday.core.OrderedSupport
order从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidReturn the viewResolversresolveViewName(String viewName, Locale locale) Resolve the given view by name.voidsetApplicationContext(cn.taketoday.context.ApplicationContext applicationContext) voidsetViewResolvers(List<ViewResolver> viewResolvers) Set the list of view viewResolvers to delegate to.从类继承的方法 cn.taketoday.core.OrderedSupport
getOrder, setOrder从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.core.Ordered
getOrder
-
字段详细资料
-
viewResolvers
-
-
构造器详细资料
-
ViewResolverComposite
public ViewResolverComposite()
-
-
方法详细资料
-
setViewResolvers
Set the list of view viewResolvers to delegate to. -
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
- 指定者:
afterPropertiesSet在接口中cn.taketoday.beans.factory.InitializingBean- 抛出:
Exception
-
resolveViewName
从接口复制的说明:ViewResolverResolve the given view by name.Note: To allow for ViewResolver chaining, a ViewResolver should return
nullif 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 returnnull(rather throwing an exception when View creation failed).- 指定者:
resolveViewName在接口中ViewResolver- 参数:
viewName- name of the view to resolvelocale- the Locale in which to resolve the view. ViewResolvers that support internationalization should respect this.- 返回:
- the View object, or
nullif 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)
-