public class DefaultPropertySourceFactory extends ObjectSE implements PropertySourceFactory
PropertySourceFactory
のデフォルトの実装で、すべてのリソースを ResourcePropertySource
にラップします。PropertySourceFactory
, ResourcePropertySource
コンストラクターと説明 |
---|
DefaultPropertySourceFactory() |
修飾子と型 | メソッドと説明 |
---|---|
PropertySource<?> | createPropertySource(StringSE name, EncodedResource resource) 指定されたリソースをラップする PropertySource を作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public PropertySource<?> createPropertySource(@Nullable StringSE name, EncodedResource resource) throws IOExceptionSE
PropertySourceFactory
PropertySource
を作成します。PropertySourceFactory
の createPropertySource
name
- プロパティソースの名前 (null
にすることができます。その場合、ファクトリ実装は、指定されたリソースに基づいて名前を生成する必要があります)resource
- ラップする(潜在的にエンコードされた)リソース PropertySource
(非 null
)IOExceptionSE
- リソースの解決に失敗した場合