クラス DefaultPropertySourceFactory
java.lang.ObjectSE
org.springframework.core.io.support.DefaultPropertySourceFactory
- 実装されたすべてのインターフェース:
PropertySourceFactory
PropertySourceFactory
のデフォルトの実装で、すべてのリソースを ResourcePropertySource
にラップします。- 導入:
- 4.3
- 作成者:
- Juergen Hoeller
- 関連事項:
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明createPropertySource
(StringSE name, EncodedResource resource) 指定されたリソースをラップするPropertySource
を作成します。
コンストラクターの詳細
DefaultPropertySourceFactory
public DefaultPropertySourceFactory()
メソッドの詳細
createPropertySource
public PropertySource<?> createPropertySource(@Nullable StringSE name, EncodedResource resource) throws IOExceptionSE インターフェースからコピーされた説明:PropertySourceFactory
指定されたリソースをラップするPropertySource
を作成します。- 次で指定:
- インターフェース
PropertySourceFactory
のcreatePropertySource
- パラメーター:
name
- プロパティソースの名前 (null
にすることができます。その場合、ファクトリ実装は、指定されたリソースに基づいて名前を生成する必要があります)resource
- ラップする(潜在的にエンコードされた)リソース- 戻り値:
- 新しい
PropertySource
(非null
) - 例外:
IOExceptionSE
- リソースの解決に失敗した場合