private List < Resource > getConfigurations ( ) { List < Resource > result = new ArrayList < Resource > ( ) ; for ( String delimitedConfigurationUrl : configurationUrls ) { String [ ] tokens = StringUtils . commaDelimitedListToStringArray ( delimitedConfigurationUrl ) ; tokens = StringUtils . trimArrayElements ( tokens ) ; for ( String configurationUrl : tokens ) { configurationUrl = configurationUrl . trim ( ) ; Resource configuration = resourceLoader . getResource ( configurationUrl ) ; if ( configuration != null && configuration . exists ( ) ) { result . add ( configuration ) ; } else if ( ignoreConfigurationNotFound ) { logger . debug ( "Ignore missing configuration file {}" , configuration ) ; } else { throw new EmbeddedJmxTransException ( "Configuration file " + configuration + " not found" ) ; } } } return result ; }
Returns the list of all configuration spring resources .