类 PropertySourceProcessor
java.lang.Object
cn.taketoday.core.io.PropertySourceProcessor
Contribute
property sources to the Environment.
This class is stateful and merges descriptors with the same name in a
single PropertySource rather than creating dedicated ones.
- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private final ConfigurableEnvironmentprivate static final Loggerprivate final PatternResourceLoader -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private voidaddPropertySource(PropertySource<?> propertySource) private static PropertySourceFactoryinstantiateClass(Class<? extends PropertySourceFactory> type) private static booleanDetermine if the supplied exception can be ignored according toignoreResourceNotFoundsemantics.voidprocessPropertySource(PropertySourceDescriptor descriptor) Process the specifiedPropertySourceDescriptoragainst the environment managed by this instance.
-
字段详细资料
-
logger
-
environment
-
resourceLoader
-
propertySourceNames
-
-
构造器详细资料
-
PropertySourceProcessor
-
-
方法详细资料
-
processPropertySource
Process the specifiedPropertySourceDescriptoragainst the environment managed by this instance.- 参数:
descriptor- the descriptor to process- 抛出:
IOException- if loading the properties failed
-
addPropertySource
-
instantiateClass
-
isIgnorableException
Determine if the supplied exception can be ignored according toignoreResourceNotFoundsemantics.
-