Spring Framework AbstractThemeResolver - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework AbstractThemeResolver class.

This code example shows how to use the following methods:getDefaultThemeName
	 * @param request 
	 * @return			configured theme for this service 
	 */ 
	protected String resolveServiceThemeName(HttpServletRequest request) { 
        if (this.servicesManager == null) { 
            return getDefaultThemeName(); 
        } 
 
        final Service service = WebUtils.getService(this.argumentExtractors, 
            request); 
 
        final RegisteredService rService = this.servicesManager 
            .findServiceBy(service); 
 
        return service != null && rService != null && StringUtils.hasText(rService.getTheme()) ? rService 
            .getTheme() : getDefaultThemeName(); 
 
	} 
	 
    public void setServicesManager(final ServicesManager servicesManager) { 
        this.servicesManager = servicesManager; 
4
CodeRank
See Code Examples for Spring Framework AbstractThemeResolver Methods: