类 DefaultPropertySourceFactory
java.lang.Object
cn.taketoday.core.io.DefaultPropertySourceFactory
- 所有已实现的接口:
PropertySourceFactory
The default implementation for
PropertySourceFactory,
wrapping every resource in a ResourcePropertySource.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, TODAY 2021/10/28 17:35
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明createPropertySource(String name, EncodedResource resource) Create aPropertySourcethat wraps the given resource.
-
构造器详细资料
-
DefaultPropertySourceFactory
public DefaultPropertySourceFactory()
-
-
方法详细资料
-
createPropertySource
public PropertySource<?> createPropertySource(@Nullable String name, EncodedResource resource) throws IOException 从接口复制的说明:PropertySourceFactoryCreate aPropertySourcethat wraps the given resource.- 指定者:
createPropertySource在接口中PropertySourceFactory- 参数:
name- the name of the property source (can benullin which case the factory implementation will have to generate a name based on the given resource)resource- the resource (potentially encoded) to wrap- 返回:
- the new
PropertySource(nevernull) - 抛出:
IOException- if resource resolution failed
-