类 GroovyMarkupViewResolver
java.lang.Object
cn.taketoday.context.support.ApplicationObjectSupport
cn.taketoday.web.view.AbstractCachingViewResolver
cn.taketoday.web.view.UrlBasedViewResolver
cn.taketoday.web.view.AbstractTemplateViewResolver
cn.taketoday.web.view.groovy.GroovyMarkupViewResolver
- 所有已实现的接口:
cn.taketoday.beans.factory.Aware,cn.taketoday.context.ApplicationContextAware,cn.taketoday.core.Ordered,ViewResolver
Convenience subclass of
AbstractTemplateViewResolver that supports
GroovyMarkupView (i.e. Groovy XML/XHTML markup templates) and
custom subclasses of it.
The view class for all views created by this resolver can be specified
via UrlBasedViewResolver.setViewClass(Class).
Note: When chaining ViewResolvers this resolver will check for the
existence of the specified template resources and only return a non-null
View object if a template is actually found.
- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Harry Yang
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.web.view.AbstractCachingViewResolver
AbstractCachingViewResolver.CacheFilter -
字段概要
从类继承的字段 cn.taketoday.web.view.UrlBasedViewResolver
FORWARD_URL_PREFIX, REDIRECT_URL_PREFIX从类继承的字段 cn.taketoday.web.view.AbstractCachingViewResolver
DEFAULT_CACHE_FILTER, DEFAULT_CACHE_LIMIT, UNRESOLVED_VIEW从类继承的字段 cn.taketoday.context.support.ApplicationObjectSupport
applicationContext, log, messageSourceAccessor从接口继承的字段 cn.taketoday.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ObjectgetCacheKey(String viewName, Locale locale) This resolver supports i18n, so cache keys should contain the locale.protected AbstractUrlBasedViewInstantiate the specified view class.protected Class<?>Return the required type of view for this resolver.从类继承的方法 cn.taketoday.web.view.AbstractTemplateViewResolver
buildView, setAllowRequestOverride, setAllowSessionOverride, setExposeRequestAttributes, setExposeSessionAttributes从类继承的方法 cn.taketoday.web.view.UrlBasedViewResolver
applyLifecycleMethods, canHandle, createView, getAttributesMap, getContentType, getExposeContextBeansAsAttributes, getExposedContextBeanNames, getExposePathVariables, getOrder, getPrefix, getRequestContextAttribute, getSuffix, getViewClass, getViewNames, initApplicationContext, isRedirectContextRelative, isRedirectHttp10Compatible, loadView, setAttributes, setAttributesMap, setContentType, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposeOutputRedirectModel, setExposePathVariables, setOrder, setPrefix, setRedirectContextRelative, setRedirectHttp10Compatible, setRequestContextAttribute, setSuffix, setViewClass, setViewNames从类继承的方法 cn.taketoday.web.view.AbstractCachingViewResolver
clearCache, getCacheFilter, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheFilter, setCacheLimit, setCacheUnresolved从类继承的方法 cn.taketoday.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext, unwrapContext, unwrapFactory
-
构造器详细资料
-
GroovyMarkupViewResolver
public GroovyMarkupViewResolver() -
GroovyMarkupViewResolver
A convenience constructor that allows for specifying theprefixandsuffixas constructor arguments.- 参数:
prefix- the prefix that gets prepended to view names when building a URLsuffix- the suffix that gets appended to view names when building a URL
-
-
方法详细资料
-
requiredViewClass
从类复制的说明:UrlBasedViewResolverReturn the required type of view for this resolver. This implementation returnsAbstractUrlBasedView. -
instantiateView
从类复制的说明:UrlBasedViewResolverInstantiate the specified view class.The default implementation uses reflection to instantiate the class.
- 覆盖:
instantiateView在类中UrlBasedViewResolver- 返回:
- a new instance of the view class
- 另请参阅:
-
getCacheKey
This resolver supports i18n, so cache keys should contain the locale.- 覆盖:
getCacheKey在类中UrlBasedViewResolver
-