Spring can scan classpath for resources, for example you can create ClasspathXMLApplicationContext and load definitions with wildcard like "/package/context-*.xml".

What API is Spring using to get list of resources withing classpath? I looked at Classloader.getResources() and it does not seems to have wildcard support builtin.