mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 14:52:24 +00:00
Polish Native Support
- Remove unneeded deprecateion marker - Add missing reflected class Issue gh-16536
This commit is contained in:
parent
791feee355
commit
f86c4ad383
@ -122,7 +122,6 @@ class WebMvcSecurityConfiguration implements WebMvcConfigurer, ApplicationContex
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@Deprecated
|
|
||||||
static BeanDefinitionRegistryPostProcessor springSecurityHandlerMappingIntrospectorBeanDefinitionRegistryPostProcessor() {
|
static BeanDefinitionRegistryPostProcessor springSecurityHandlerMappingIntrospectorBeanDefinitionRegistryPostProcessor() {
|
||||||
return new BeanDefinitionRegistryPostProcessor() {
|
return new BeanDefinitionRegistryPostProcessor() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -303,17 +303,11 @@ public class WebSecurityConfiguration implements ImportAware {
|
|||||||
* @param filters the Filters to delegate to. One of which must be
|
* @param filters the Filters to delegate to. One of which must be
|
||||||
* FilterChainProxy.
|
* FilterChainProxy.
|
||||||
*/
|
*/
|
||||||
@Autowired
|
|
||||||
CompositeFilterChainProxy(List<? extends Filter> filters) {
|
CompositeFilterChainProxy(List<? extends Filter> filters) {
|
||||||
this.doFilterDelegate = createDoFilterDelegate(filters);
|
this.doFilterDelegate = createDoFilterDelegate(filters);
|
||||||
this.springSecurityFilterChain = findFilterChainProxy(filters);
|
this.springSecurityFilterChain = findFilterChainProxy(filters);
|
||||||
}
|
}
|
||||||
|
|
||||||
CompositeFilterChainProxy(Filter delegate, FilterChainProxy filterChain) {
|
|
||||||
this.doFilterDelegate = delegate;
|
|
||||||
this.springSecurityFilterChain = filterChain;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() {
|
public void afterPropertiesSet() {
|
||||||
this.springSecurityFilterChain.afterPropertiesSet();
|
this.springSecurityFilterChain.afterPropertiesSet();
|
||||||
|
@ -35,6 +35,9 @@ class WebSecurityConfigurationRuntimeHints implements RuntimeHintsRegistrar {
|
|||||||
.registerType(TypeReference
|
.registerType(TypeReference
|
||||||
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"),
|
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"),
|
||||||
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
|
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
|
||||||
|
hints.reflection()
|
||||||
|
.registerType(TypeReference.of("org.springframework.web.filter.ServletRequestPathFilter"),
|
||||||
|
MemberCategory.INVOKE_DECLARED_CONSTRUCTORS);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,9 @@ class WebSecurityConfigurationRuntimeHintsTests {
|
|||||||
.onType(TypeReference
|
.onType(TypeReference
|
||||||
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"))
|
.of("org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$CompositeFilterChainProxy"))
|
||||||
.withMemberCategory(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
|
.withMemberCategory(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
|
||||||
|
assertThat(RuntimeHintsPredicates.reflection()
|
||||||
|
.onType(TypeReference.of("org.springframework.web.filter.ServletRequestPathFilter"))
|
||||||
|
.withMemberCategory(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user