/**
* ��չ<code>ResourcePatternResolver</code>���ƣ�ʵ���Զ������Դװ�ء�
*/
@Override
protected ResourcePatternResolver getResourcePatternResolver() {
final ResourcePatternResolver defaultResolver = super.getResourcePatternResolver();
return new ResourcePatternResolver() {
public Resource[] getResources(String locationPattern) throws IOException {
ResourcePatternResolver resolver = null;
if (resourceLoadingExtender != null) {
resolver = resourceLoadingExtender.getResourcePatternResolver();
}
if (resolver == null) {
resolver = defaultResolver;
}
return resolver.getResources(locationPattern);
}
public ClassLoader getClassLoader() {
return defaultResolver.getClassLoader();
}