クラス DefaultPropertySourceFactory

java.lang.ObjectSE
org.springframework.core.io.support.DefaultPropertySourceFactory
実装されたすべてのインターフェース:
PropertySourceFactory

public class DefaultPropertySourceFactory extends ObjectSE implements PropertySourceFactory
PropertySourceFactory のデフォルトの実装で、すべてのリソースを ResourcePropertySource にラップします。
導入:
4.3
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • DefaultPropertySourceFactory

      public DefaultPropertySourceFactory()
  • メソッドの詳細

    • createPropertySource

      public PropertySource<?> createPropertySource(@Nullable StringSE name, EncodedResource resource) throws IOExceptionSE
      インターフェースからコピーされた説明: PropertySourceFactory
      指定されたリソースをラップする PropertySource を作成します。
      次で指定:
      インターフェース PropertySourceFactorycreatePropertySource 
      パラメーター:
      name - プロパティソースの名前 (null にすることができます。その場合、ファクトリ実装は、指定されたリソースに基づいて名前を生成する必要があります)
      resource - ラップする(潜在的にエンコードされた)リソース
      戻り値:
      新しい PropertySource (非 null)
      例外:
      IOExceptionSE - リソースの解決に失敗した場合