mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-28 06:42:49 +00:00
Replace use of deprecated Spring methods (addConstructorArg) with non-deprecated versions.
This commit is contained in:
parent
7a8bd8a673
commit
ae05e74085
@ -111,12 +111,13 @@ public class HttpSecurityBeanDefinitionParser implements BeanDefinitionParser {
|
|||||||
// true if Ant path and using lower case
|
// true if Ant path and using lower case
|
||||||
final boolean convertPathsToLowerCase = (matcher instanceof AntUrlPathMatcher) && matcher.requiresLowerCaseUrl();
|
final boolean convertPathsToLowerCase = (matcher instanceof AntUrlPathMatcher) && matcher.requiresLowerCaseUrl();
|
||||||
|
|
||||||
final List interceptUrlElts = DomUtils.getChildElementsByTagName(element, Elements.INTERCEPT_URL);
|
final List<Element> interceptUrlElts = DomUtils.getChildElementsByTagName(element, Elements.INTERCEPT_URL);
|
||||||
final Map filterChainMap = new LinkedHashMap();
|
final Map filterChainMap = new LinkedHashMap();
|
||||||
final LinkedHashMap channelRequestMap = new LinkedHashMap();
|
final LinkedHashMap channelRequestMap = new LinkedHashMap();
|
||||||
|
|
||||||
registerFilterChainProxy(parserContext, filterChainMap, matcher, source);
|
registerFilterChainProxy(parserContext, filterChainMap, matcher, source);
|
||||||
|
|
||||||
|
// filterChainMap and channelRequestMap are populated by this call
|
||||||
parseInterceptUrlsForChannelSecurityAndFilterChain(interceptUrlElts, filterChainMap, channelRequestMap,
|
parseInterceptUrlsForChannelSecurityAndFilterChain(interceptUrlElts, filterChainMap, channelRequestMap,
|
||||||
convertPathsToLowerCase, parserContext);
|
convertPathsToLowerCase, parserContext);
|
||||||
|
|
||||||
@ -437,11 +438,11 @@ public class HttpSecurityBeanDefinitionParser implements BeanDefinitionParser {
|
|||||||
BeanDefinitionBuilder.rootBeanDefinition(DefaultLoginPageGeneratingFilter.class);
|
BeanDefinitionBuilder.rootBeanDefinition(DefaultLoginPageGeneratingFilter.class);
|
||||||
|
|
||||||
if (formLoginFilter != null) {
|
if (formLoginFilter != null) {
|
||||||
loginPageFilter.addConstructorArg(new RuntimeBeanReference(BeanIds.FORM_LOGIN_FILTER));
|
loginPageFilter.addConstructorArgValue(new RuntimeBeanReference(BeanIds.FORM_LOGIN_FILTER));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (openIDFilter != null) {
|
if (openIDFilter != null) {
|
||||||
loginPageFilter.addConstructorArg(new RuntimeBeanReference(BeanIds.OPEN_ID_FILTER));
|
loginPageFilter.addConstructorArgValue(new RuntimeBeanReference(BeanIds.OPEN_ID_FILTER));
|
||||||
}
|
}
|
||||||
|
|
||||||
pc.getRegistry().registerBeanDefinition(BeanIds.DEFAULT_LOGIN_PAGE_GENERATING_FILTER,
|
pc.getRegistry().registerBeanDefinition(BeanIds.DEFAULT_LOGIN_PAGE_GENERATING_FILTER,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user