config/src/main/java/org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.java
@Autowired(required = false)
	public void setFilterChainProxySecurityConfigurer(
			ObjectPostProcessor<Object> objectPostProcessor,
			@Value("#{@autowiredWebSecurityConfigurersIgnoreParents.getWebSecurityConfigurers()}") List<SecurityConfigurer<Filter, WebSecurity>> webSecurityConfigurers)
			throws Exception {
		webSecurity = objectPostProcessor
				.postProcess(new WebSecurity(objectPostProcessor));
		if (debugEnabled != null) {
			webSecurity.debug(debugEnabled);
		}

		Collections.sort(webSecurityConfigurers, AnnotationAwareOrderComparator.INSTANCE);

		Integer previousOrder = null;
		Object previousConfig = null;
		for (SecurityConfigurer<Filter, WebSecurity> config : webSecurityConfigurers) {
			Integer order = AnnotationAwareOrderComparator.lookupOrder(config);
			if (previousOrder != null && previousOrder.equals(order)) {
				throw new IllegalStateException(
						"@Order on WebSecurityConfigurers must be unique. Order of "
								+ order + " was already used on " + previousConfig + ", so it cannot be used on "
								+ config + " too.");
			}
			previousOrder = order;
			previousConfig = config;
		}
		for (SecurityConfigurer<Filter, WebSecurity> webSecurityConfigurer : webSecurityConfigurers) {
			webSecurity.apply(webSecurityConfigurer);
		}
		this.webSecurityConfigurers = webSecurityConfigurers;
	}
@Autowired(required = false)
	public void setFilterChainProxySecurityConfigurer(
			ObjectPostProcessor<Object> objectPostProcessor,
			@Value("#{@autowiredWebSecurityConfigurersIgnoreParents.getWebSecurityConfigurers()}") List<SecurityConfigurer<Filter, WebSecurity>> webSecurityConfigurers)
			throws Exception {
		webSecurity = objectPostProcessor
				.postProcess(new WebSecurity(objectPostProcessor));
		if (debugEnabled != null) {
			webSecurity.debug(debugEnabled);
		}

		Collections.sort(webSecurityConfigurers, AnnotationAwareOrderComparator.INSTANCE);

		Integer previousOrder = null;
		Object previousConfig = null;
		for (SecurityConfigurer<Filter, WebSecurity> config : webSecurityConfigurers) {
			Integer order = AnnotationAwareOrderComparator.lookupOrder(config);
			if (previousOrder != null && previousOrder.equals(order)) {
				throw new IllegalStateException(
						"@Order on WebSecurityConfigurers must be unique. Order of "
								+ order + " was already used on " + previousConfig + ", so it cannot be used on "
								+ config + " too.");
			}
			previousOrder = order;
			previousConfig = config;
		}
		for (SecurityConfigurer<Filter, WebSecurity> webSecurityConfigurer : webSecurityConfigurers) {
			webSecurity.apply(webSecurityConfigurer);
		}
		this.webSecurityConfigurers = webSecurityConfigurers;
	}
@ Autowired ( required = false ) public void setFilterChainProxySecurityConfigurer ( ObjectPostProcessor < Object > objectPostProcessor , @ Value ( "#{@autowiredWebSecurityConfigurersIgnoreParents.getWebSecurityConfigurers()}" ) List < SecurityConfigurer < Filter , WebSecurity > > webSecurityConfigurers ) throws Exception { webSecurity = objectPostProcessor . postProcess ( new WebSecurity ( objectPostProcessor ) ) ; if ( debugEnabled != null ) { webSecurity . debug ( debugEnabled ) ; } Collections . sort ( webSecurityConfigurers , AnnotationAwareOrderComparator . INSTANCE ) ; Integer previousOrder = null ; Object previousConfig = null ; for ( SecurityConfigurer < Filter , WebSecurity > config : webSecurityConfigurers ) { Integer order = AnnotationAwareOrderComparator . lookupOrder ( config ) ; if ( previousOrder != null && previousOrder . equals ( order ) ) { throw new IllegalStateException ( "@Order on WebSecurityConfigurers must be unique. Order of " + order + " was already used on " + previousConfig + ", so it cannot be used on " + config + " too." ) ; } previousOrder = order ; previousConfig = config ; } for ( SecurityConfigurer < Filter , WebSecurity > webSecurityConfigurer : webSecurityConfigurers ) { webSecurity . apply ( webSecurityConfigurer ) ; } this . webSecurityConfigurers = webSecurityConfigurers ; }
Sets the {@code <SecurityConfigurer<FilterChainProxy, WebSecurityBuilder>}
instances used to create the web configuration.

@param objectPostProcessor the {@link ObjectPostProcessor} used to create a
{@link WebSecurity} instance
@param webSecurityConfigurers the
{@code <SecurityConfigurer<FilterChainProxy, WebSecurityBuilder>} instances used to
create the web configuration
@throws Exception
Sets the { @code <SecurityConfigurer<FilterChainProxy WebSecurityBuilder > } instances used to create the web configuration .