类 DefaultPropertySourceFactory
- java.lang.Object
- org.springframework.core.io.support.DefaultPropertySourceFactory
- 所有已实现的接口:
PropertySourceFactory
public class DefaultPropertySourceFactory extends Object implements PropertySourceFactory
The default implementation forPropertySourceFactory
, wrapping every resource in aResourcePropertySource
.- 从以下版本开始:
- 4.3
- 作者:
- Juergen Hoeller
- 另请参阅:
PropertySourceFactory
,ResourcePropertySource
构造器概要
构造器 构造器 说明 DefaultPropertySourceFactory()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PropertySource<?>
createPropertySource(String name, EncodedResource resource)
Create aPropertySource
that wraps the given resource.
构造器详细资料
DefaultPropertySourceFactory
public DefaultPropertySourceFactory()
方法详细资料
createPropertySource
public PropertySource<?> createPropertySource(String name, EncodedResource resource) throws IOException
从接口复制的说明:PropertySourceFactory
Create aPropertySource
that wraps the given resource.- 指定者:
createPropertySource
在接口中PropertySourceFactory
- 参数:
name
- the name of the property source (can benull
in 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