public static class PropertySource.StubPropertySource extends PropertySource<Object>
PropertySource to be used as a placeholder in cases where an actual
property source cannot be eagerly initialized at application context
creation time. For example, a ServletContext-based property source
must wait until the ServletContext object is available to its enclosing
ApplicationContext. In such cases, a stub should be used to hold the
intended default position/order of the property source, then be replaced
during context refresh.PropertySource.StubPropertySourcelogger, name, source| Constructor and Description |
|---|
StubPropertySource(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getProperty(String name)
Always returns
null. |
containsProperty, equals, getName, getSource, hashCode, named, toStringpublic StubPropertySource(String name)
public String getProperty(String name)
null.getProperty in class PropertySource<Object>name - the property to findPropertyResolver.getRequiredProperty(String)Copyright © 2015. All rights reserved.