本文整理了Java中org.springframework.context.support.ReloadableResourceBundleMessageSource.newProperties
方法的一些代码示例,展示了ReloadableResourceBundleMessageSource.newProperties
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReloadableResourceBundleMessageSource.newProperties
方法的具体详情如下:
包路径:org.springframework.context.support.ReloadableResourceBundleMessageSource
类名称:ReloadableResourceBundleMessageSource
方法名:newProperties
[英]Template method for creating a plain new Properties instance. The default implementation simply calls Properties#Properties().
Allows for returning a custom Properties extension in subclasses. Overriding methods should just instantiate a custom Properties subclass, with no further initialization or population to be performed at that point.
[中]用于创建普通新属性实例的模板方法。默认实现只是调用Properties#Properties()。
允许在子类中返回自定义属性扩展。重写方法应该只实例化一个自定义属性子类,此时不需要执行进一步的初始化或填充。
代码示例来源:origin: spring-projects/spring-framework
Properties props = newProperties();
try (InputStream is = resource.getInputStream()) {
String resourceFilename = resource.getFilename();
代码示例来源:origin: org.springframework/spring-context
Properties props = newProperties();
try (InputStream is = resource.getInputStream()) {
String resourceFilename = resource.getFilename();
代码示例来源:origin: spring-projects/spring-framework
return mergedHolder;
Properties mergedProps = newProperties();
long latestTimestamp = -1;
String[] basenames = StringUtils.toStringArray(getBasenameSet());
代码示例来源:origin: org.springframework/spring-context
return mergedHolder;
Properties mergedProps = newProperties();
long latestTimestamp = -1;
String[] basenames = StringUtils.toStringArray(getBasenameSet());
代码示例来源:origin: apache/servicemix-bundles
Properties props = newProperties();
try (InputStream is = resource.getInputStream()) {
String resourceFilename = resource.getFilename();
代码示例来源:origin: apache/servicemix-bundles
return mergedHolder;
Properties mergedProps = newProperties();
long latestTimestamp = -1;
String[] basenames = StringUtils.toStringArray(getBasenameSet());
内容来源于网络,如有侵权,请联系作者删除!