Browse Source

Polish AutoProxyRegistrar

pull/7/head
Chris Beams 13 years ago
parent
commit
9c0c87f6a7
  1. 2
      org.springframework.context/src/main/java/org/springframework/cache/annotation/ProxyCachingConfiguration.java
  2. 1
      org.springframework.context/src/main/java/org/springframework/context/annotation/AutoProxyRegistrar.java

2
org.springframework.context/src/main/java/org/springframework/cache/annotation/ProxyCachingConfiguration.java vendored

@ -21,10 +21,8 @@ import org.springframework.cache.interceptor.BeanFactoryCacheOperationSourceAdvi @@ -21,10 +21,8 @@ import org.springframework.cache.interceptor.BeanFactoryCacheOperationSourceAdvi
import org.springframework.cache.interceptor.CacheInterceptor;
import org.springframework.cache.interceptor.CacheOperationSource;
import org.springframework.context.annotation.AnnotationConfigUtils;
import org.springframework.context.annotation.AutoProxyRegistrar;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Role;
/**

1
org.springframework.context/src/main/java/org/springframework/context/annotation/AutoProxyRegistrar.java

@ -53,6 +53,7 @@ public class AutoProxyRegistrar implements ImportBeanDefinitionRegistrar { @@ -53,6 +53,7 @@ public class AutoProxyRegistrar implements ImportBeanDefinitionRegistrar {
AopConfigUtils.registerAutoProxyCreatorIfNecessary(registry);
if ((Boolean)proxyTargetClass) {
AopConfigUtils.forceAutoProxyCreatorToUseClassProxying(registry);
return;
}
}
}

Loading…
Cancel
Save