From 6b93f41f3a6a44986847450cd0426d34c807cd1a Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 31 Mar 2010 15:25:35 +0000 Subject: [PATCH] AbstractInterceptorDrivenBeanDefinitionDecorator preserves lazy-init flag as well --- .../config/AbstractInterceptorDrivenBeanDefinitionDecorator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.springframework.aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java b/org.springframework.aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java index 628333b7fb..43de1f6446 100644 --- a/org.springframework.aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java +++ b/org.springframework.aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java @@ -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);