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