config/src/main/java/org/springframework/security/config/annotation/web/builders/FilterComparator.java
public void registerBefore(Class<? extends Filter> filter,
			Class<? extends Filter> beforeFilter) {
		Integer position = getOrder(beforeFilter);
		if (position == null) {
			throw new IllegalArgumentException(
					"Cannot register after unregistered Filter " + beforeFilter);
		}

		put(filter, position - 1);
	}
public void registerBefore(Class<? extends Filter> filter,
			Class<? extends Filter> beforeFilter) {
		Integer position = getOrder(beforeFilter);
		if (position == null) {
			throw new IllegalArgumentException(
					"Cannot register after unregistered Filter " + beforeFilter);
		}

		put(filter, position - 1);
	}
public void registerBefore ( Class < ? extends Filter > filter , Class < ? extends Filter > beforeFilter ) { Integer position = getOrder ( beforeFilter ) ; if ( position == null ) { throw new IllegalArgumentException ( "Cannot register after unregistered Filter " + beforeFilter ) ; } put ( filter , position - 1 ) ; }
Registers a {@link Filter} to exist before a particular {@link Filter} that is
already registered.
@param filter the {@link Filter} to register
@param beforeFilter the {@link Filter} that is already registered and that
{@code filter} should be placed before.
Registers a {