Interface for web-based theme resolution strategies that allows for
both theme resolution via the request and theme modification via
request and response.
This interface allows for implementations based on session,
cookies, etc. The default implementation is FixedThemeResolver,
simply using a configured default theme.
Note that this resolver is only responsible for determining the
current theme name. The Theme instance for the resolved theme name
gets looked up by DispatcherServlet via the respective ThemeSource,
i.e. the current WebApplicationContext.
Use RequestContext.getTheme() to retrieve the current theme in
controllers or views, independent of the actual resolution strategy.
author: Jean-Pierre Pawlak author: Juergen Hoeller since: 17.06.2003 See Also: org.springframework.web.servlet.theme.FixedThemeResolver See Also: org.springframework.ui.context.Theme See Also: org.springframework.ui.context.ThemeSource See Also: org.springframework.web.servlet.support.RequestContext.getTheme |