private void addLocationsToBuilder ( Element element , BeanDefinitionBuilder builder ) { Element locationsElement = DomUtils . getChildElementByTagName ( element , LOCATIONS ) ; if ( locationsElement != null ) { List < Element > locationElements = DomUtils . getChildElementsByTagName ( locationsElement , LOCATION ) ; List < String > locations = locationElements . stream ( ) . map ( locationElement -> locationElement . getAttribute ( "path" ) ) . collect ( Collectors . toList ( ) ) ; if ( ! locations . isEmpty ( ) ) { builder . addPropertyValue ( LOCATIONS , locations ) ; } } }
Adds the locations contained in the given locations element to the BeanDefinitionBuilder