public static class PropertySource.StubPropertySource extends PropertySource<java.lang.Object>
PropertySource
。例: ServletContext
ベースのプロパティソースは、それを囲む ApplicationContext
が ServletContext
オブジェクトを使用できるようになるまで待機する必要があります。そのような場合、スタブは、プロパティソースの意図されたデフォルトの位置 / 順序を保持するために使用され、コンテキストのリフレッシュ中に置き換えられる必要があります。PropertySource.StubPropertySource
logger, name, source
コンストラクターと説明 |
---|
StubPropertySource(java.lang.String name) |
修飾子と型 | メソッドと説明 |
---|---|
java.lang.String | getProperty(java.lang.String name) 常に null を返します。 |
containsProperty, equals, getName, getSource, hashCode, named, toString
public java.lang.String getProperty(java.lang.String name)
null
を返します。PropertySource<java.lang.Object>
の getProperty
name
- 検索するプロパティ PropertyResolver.getRequiredProperty(String)