BeanClassLoaderAware is not available in Spring 1.2.9
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user