context.setClassLoader(classLoader);
return context;
}
public final Resource[] getSpringConfigResources(ModuleDefinition moduleDefinition, ClassLoader classLoader) {
ModuleLocationsResourceLoader loader = new ModuleLocationsResourceLoader();
Collection<ResourceLoader> resourceLoaders = getSpringLocationResourceLoaders();
ResourceLoader compositeResourceLoader = new CompositeResourceLoader(resourceLoaders);
loader.setResourceLoader(compositeResourceLoader);
return loader.getSpringLocations(moduleDefinition, classLoader);
}