Skip to content

Commit a0c5504

Browse files
damable-nuvolexjzheaux
authored andcommitted
Fix inconsistent constructor declaration
Closes gh-16325 Signed-off-by: damable-nuvolex <damable@nuvolex.com>
1 parent 2989d12 commit a0c5504

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config/src/main/java/org/springframework/security/config/annotation/method/configuration/ReactiveAuthorizationManagerMethodSecurityConfiguration.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2024 the original author or authors.
2+
* Copyright 2002-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -83,10 +83,11 @@ final class ReactiveAuthorizationManagerMethodSecurityConfiguration
8383

8484
private final AuthorizationManagerAfterReactiveMethodInterceptor postAuthorizeMethodInterceptor;
8585

86-
@Autowired(required = false)
87-
ReactiveAuthorizationManagerMethodSecurityConfiguration(MethodSecurityExpressionHandler expressionHandler,
86+
ReactiveAuthorizationManagerMethodSecurityConfiguration(
87+
ObjectProvider<MethodSecurityExpressionHandler> expressionHandlers,
8888
ObjectProvider<ObjectPostProcessor<ReactiveAuthorizationManager<MethodInvocation>>> preAuthorizePostProcessor,
8989
ObjectProvider<ObjectPostProcessor<ReactiveAuthorizationManager<MethodInvocationResult>>> postAuthorizePostProcessor) {
90+
MethodSecurityExpressionHandler expressionHandler = expressionHandlers.getIfUnique();
9091
if (expressionHandler != null) {
9192
this.preFilterMethodInterceptor = new PreFilterAuthorizationReactiveMethodInterceptor(expressionHandler);
9293
this.preAuthorizeAuthorizationManager = new PreAuthorizeReactiveAuthorizationManager(expressionHandler);

0 commit comments

Comments
 (0)