|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2022 the original author or authors. |
| 2 | + * Copyright 2002-2025 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
22 | 22 |
|
23 | 23 | import jakarta.servlet.Filter;
|
24 | 24 |
|
25 |
| -import org.springframework.beans.factory.BeanClassLoaderAware; |
26 | 25 | import org.springframework.beans.factory.annotation.Autowired;
|
27 | 26 | import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
|
28 | 27 | import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
|
65 | 64 | * @see WebSecurity
|
66 | 65 | */
|
67 | 66 | @Configuration(proxyBeanMethods = false)
|
68 |
| -public class WebSecurityConfiguration implements ImportAware, BeanClassLoaderAware { |
| 67 | +public class WebSecurityConfiguration implements ImportAware { |
69 | 68 |
|
70 | 69 | private WebSecurity webSecurity;
|
71 | 70 |
|
72 | 71 | private Boolean debugEnabled;
|
73 | 72 |
|
74 |
| - private List<SecurityConfigurer<Filter, WebSecurity>> webSecurityConfigurers; |
75 |
| - |
76 | 73 | private List<SecurityFilterChain> securityFilterChains = Collections.emptyList();
|
77 | 74 |
|
78 | 75 | private List<WebSecurityCustomizer> webSecurityCustomizers = Collections.emptyList();
|
79 | 76 |
|
80 |
| - private ClassLoader beanClassLoader; |
81 |
| - |
82 | 77 | @Autowired(required = false)
|
83 | 78 | private HttpSecurity httpSecurity;
|
84 | 79 |
|
@@ -164,7 +159,6 @@ public void setFilterChainProxySecurityConfigurer(ObjectPostProcessor<Object> ob
|
164 | 159 | for (SecurityConfigurer<Filter, WebSecurity> webSecurityConfigurer : webSecurityConfigurers) {
|
165 | 160 | this.webSecurity.apply(webSecurityConfigurer);
|
166 | 161 | }
|
167 |
| - this.webSecurityConfigurers = webSecurityConfigurers; |
168 | 162 | }
|
169 | 163 |
|
170 | 164 | @Autowired(required = false)
|
@@ -193,11 +187,6 @@ public void setImportMetadata(AnnotationMetadata importMetadata) {
|
193 | 187 | }
|
194 | 188 | }
|
195 | 189 |
|
196 |
| - @Override |
197 |
| - public void setBeanClassLoader(ClassLoader classLoader) { |
198 |
| - this.beanClassLoader = classLoader; |
199 |
| - } |
200 |
| - |
201 | 190 | /**
|
202 | 191 | * A custom version of the Spring provided AnnotationAwareOrderComparator that uses
|
203 | 192 | * {@link AnnotationUtils#findAnnotation(Class, Class)} to look on super class
|
|
0 commit comments