Class ThemeViewResolver

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.ViewResolver

    public class ThemeViewResolver
    extends org.springframework.web.servlet.view.AbstractCachingViewResolver
    ThemeViewResolver is a theme resolver that checks for a UI view in the specific theme before utilizing the base UI view.
    Since:
    5.2.0
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ThemeViewResolver.Factory
      ThemeViewResolverFactory that will create a ThemeViewResolver for the specified theme.
      • Nested classes/interfaces inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver

        org.springframework.web.servlet.view.AbstractCachingViewResolver.CacheFilter
    • Field Summary

      • Fields inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver

        DEFAULT_CACHE_LIMIT
      • Fields inherited from class org.springframework.context.support.ApplicationObjectSupport

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getCacheKey​(java.lang.String viewName, java.util.Locale locale)  
      protected org.springframework.web.servlet.View loadView​(java.lang.String viewName, java.util.Locale locale)  
      • Methods inherited from class org.springframework.web.servlet.view.AbstractCachingViewResolver

        clearCache, createView, getCacheFilter, getCacheLimit, isCache, isCacheUnresolved, removeFromCache, resolveViewName, setCache, setCacheFilter, setCacheLimit, setCacheUnresolved
      • Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport

        getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
      • Methods inherited from class org.springframework.context.support.ApplicationObjectSupport

        getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThemeViewResolver

        public ThemeViewResolver()
    • Method Detail

      • getCacheKey

        protected java.lang.Object getCacheKey​(java.lang.String viewName,
                                               java.util.Locale locale)
        Overrides:
        getCacheKey in class org.springframework.web.servlet.view.AbstractCachingViewResolver
      • loadView

        protected org.springframework.web.servlet.View loadView​(java.lang.String viewName,
                                                                java.util.Locale locale)
                                                         throws java.lang.Exception
        Specified by:
        loadView in class org.springframework.web.servlet.view.AbstractCachingViewResolver
        Throws:
        java.lang.Exception