Spring Framework MessageSourceResourceBundle - 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 MessageSourceResourceBundle class.

This code example shows how to use the following methods:
		this.messageSource = messageSource;
	} 
 
	@Override 
	public ResourceBundle getResourceBundle(Locale locale) {
		return new MessageSourceResourceBundle(this.messageSource, locale);
	} 
 
} 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
				if (lcObject instanceof LocalizationContext) { 
					ResourceBundle lcBundle = ((LocalizationContext) lcObject).getResourceBundle(); 
					return new MessageSourceResourceBundle(this.messageSource, getLocale(), lcBundle); 
				} 
			} 
			return new MessageSourceResourceBundle(this.messageSource, getLocale()); 
		} 
 
		@Override 
		public Locale getLocale() { 
			HttpSession session = this.request.getSession(false); 
			if (session != null) { 
				Object localeObject = Config.get(session, Config.FMT_LOCALE); 
				if (localeObject instanceof Locale) { 
					return (Locale) localeObject; 
				} 
			} 
			return RequestContextUtils.getLocale(this.request); 
		} 
	} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
		if(messageSource == null) throw new IllegalArgumentException("'messageSource' must be not null");
		this.messageSource = messageSource;
	} 
 
	public ResourceBundle getResourceBundle(Locale locale) {
		return new MessageSourceResourceBundle(messageSource, locale);
	} 
 
} 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
			model.put(JRParameter.REPORT_TIME_ZONE, timeZone); 
		} 
		JasperReport report = getReport(); 
		if ((report == null || report.getResourceBundle() == null) && 
				!model.containsKey(JRParameter.REPORT_RESOURCE_BUNDLE)) { 
			model.put(JRParameter.REPORT_RESOURCE_BUNDLE, 
					new MessageSourceResourceBundle(rc.getMessageSource(), locale)); 
		} 
	} 
 
	/** 
	 * Create a populated {@code JasperPrint} instance from the configured 
	 * {@code JasperReport} instance. 
	 * <p>By default, this method will use any {@code JRDataSource} instance 
	 * (or wrappable {@code Object}) that can be located using {@link #setReportDataKey}, 
	 * a lookup for type {@code JRDataSource} in the model Map, or a special value 
	 * retrieved via {@link #getReportData}. 
	 * <p>If no {@code JRDataSource} can be found, this method will use a JDBC 
	 * {@code Connection} obtained from the configured {@code javax.sql.DataSource} 
	 * (or a DataSource attribute in the model). If no JDBC DataSource can be found 
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java