in impl/src/main/java/org/apache/geronimo/config/configsource/PropertyFileConfigSourceProvider.java [52:70]
public PropertyFileConfigSourceProvider(String propertyFileName, boolean optional, ClassLoader forClassLoader) {
try {
Collection<URL> propertyFileUrls = resolvePropertyFiles(forClassLoader, propertyFileName);
if (!optional && propertyFileUrls.isEmpty()) {
throw new IllegalStateException(propertyFileName + " wasn't found.");
}
for (URL propertyFileUrl : propertyFileUrls) {
LOG.log(Level.INFO,
"Custom config found by GeronimoConfig. Name: ''{0}'', URL: ''{1}''",
new Object[]{propertyFileName, propertyFileUrl});
configSources.add(new PropertyFileConfigSource(propertyFileUrl));
}
}
catch (IOException ioe) {
throw new IllegalStateException("problem while loading GeronimoConfig property files", ioe);
}
}