|
23 | 23 | import org.springframework.aop.scope.ScopedProxyUtils; |
24 | 24 | import org.springframework.beans.BeansException; |
25 | 25 | import org.springframework.beans.factory.BeanFactory; |
26 | | -import org.springframework.beans.factory.InitializingBean; |
27 | | -import org.springframework.beans.factory.ListableBeanFactory; |
28 | | -import org.springframework.beans.factory.annotation.Autowired; |
29 | 26 | import org.springframework.beans.factory.config.BeanDefinition; |
30 | 27 | import org.springframework.beans.factory.config.BeanDefinitionHolder; |
31 | 28 | import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; |
|
53 | 50 | import org.springframework.context.EnvironmentAware; |
54 | 51 | import org.springframework.context.annotation.Bean; |
55 | 52 | import org.springframework.context.annotation.Configuration; |
56 | | -import org.springframework.context.weaving.LoadTimeWeaverAware; |
57 | 53 | import org.springframework.core.env.Environment; |
58 | 54 | import org.springframework.core.env.StandardEnvironment; |
59 | 55 | import org.springframework.core.style.ToStringCreator; |
60 | | -import org.springframework.instrument.classloading.LoadTimeWeaver; |
61 | 56 | import org.springframework.stereotype.Component; |
62 | 57 | import org.springframework.util.StringUtils; |
63 | 58 |
|
@@ -158,27 +153,6 @@ public String toString() { |
158 | 153 |
|
159 | 154 | } |
160 | 155 |
|
161 | | - @Configuration(proxyBeanMethods = false) |
162 | | - @ConditionalOnClass(name = "javax.persistence.EntityManagerFactory") |
163 | | - protected static class JpaInvokerConfiguration implements LoadTimeWeaverAware, InitializingBean { |
164 | | - |
165 | | - @Autowired |
166 | | - private ListableBeanFactory beanFactory; |
167 | | - |
168 | | - @Override |
169 | | - public void afterPropertiesSet() { |
170 | | - String cls = "org.springframework.boot.autoconfigure.jdbc.DataSourceInitializerInvoker"; |
171 | | - if (this.beanFactory.containsBean(cls)) { |
172 | | - this.beanFactory.getBean(cls); |
173 | | - } |
174 | | - } |
175 | | - |
176 | | - @Override |
177 | | - public void setLoadTimeWeaver(LoadTimeWeaver ltw) { |
178 | | - } |
179 | | - |
180 | | - } |
181 | | - |
182 | 156 | @Component |
183 | 157 | protected static class RefreshScopeBeanDefinitionEnhancer |
184 | 158 | implements BeanDefinitionRegistryPostProcessor, EnvironmentAware { |
|
0 commit comments