public void addBefore ( String relativePropertySourceName , PropertySource < ? > propertySource ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Adding PropertySource '" + propertySource . getName ( ) + "' with search precedence immediately higher than '" + relativePropertySourceName + "'" ) ; } assertLegalRelativeAddition ( relativePropertySourceName , propertySource ) ; removeIfPresent ( propertySource ) ; int index = assertPresentAndGetIndex ( relativePropertySourceName ) ; addAtIndex ( index , propertySource ) ; }
Add the given property source object with precedence immediately higher than the named relative property source .