Browse Source

AbstractInterceptorDrivenBeanDefinitionDecorator preserves lazy-init flag as well

pull/23217/head
Juergen Hoeller 15 years ago
parent
commit
6b93f41f3a
  1. 1
      org.springframework.aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java

1
org.springframework.aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java

@ -82,6 +82,7 @@ public abstract class AbstractInterceptorDrivenBeanDefinitionDecorator implement @@ -82,6 +82,7 @@ public abstract class AbstractInterceptorDrivenBeanDefinitionDecorator implement
// create proxy factory bean definition
proxyDefinition.setBeanClass(ProxyFactoryBean.class);
proxyDefinition.setScope(targetDefinition.getScope());
proxyDefinition.setLazyInit(targetDefinition.isLazyInit());
// set the target
proxyDefinition.setDecoratedDefinition(targetHolder);
proxyDefinition.getPropertyValues().add("target", targetHolder);

Loading…
Cancel
Save