BeanClassLoaderAware is not available in Spring 1.2.9

This commit is contained in:
Arjen Poutsma
2007-06-07 00:48:11 +00:00
parent 2f75e420a5
commit b525752ec7

View File

@@ -26,7 +26,6 @@ import javax.servlet.ServletContext;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
@@ -140,9 +139,6 @@ public class DefaultStrategiesHelper {
beanNameAware.setBeanName(clazz.getName());
}
if (applicationContext != null) {
if (strategy instanceof BeanClassLoaderAware) {
((BeanClassLoaderAware) strategy).setBeanClassLoader(applicationContext.getClassLoader());
}
if (strategy instanceof BeanFactoryAware) {
((BeanFactoryAware) strategy).setBeanFactory(applicationContext);
}