Added logging of FilterChainProxy when security namespace postprocessor has finished configuring it.

This commit is contained in:
Luke Taylor 2008-01-18 22:20:16 +00:00
parent 84815df529
commit c3cd5d98ba
1 changed files with 3 additions and 1 deletions

View File

@ -162,6 +162,8 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
beanFactory.getBean(BeanIds.HTTP_SESSION_CONTEXT_INTEGRATION_FILTER);
scif.setForceEagerSessionCreation(true);
}
logger.info("Configured filter chain(s): " + filterChainProxy);
}
private List orderFilters(ConfigurableListableBeanFactory beanFactory) {
@ -183,7 +185,7 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
if (!(filter instanceof Ordered)) {
// TODO: Possibly log this as a warning and skip this filter.
throw new SecurityConfigurationException("Filter " + id + " must implement the Ordered interface");
logger.info("Filter " + id + " doesn't implement the Ordered interface, skipping it.");
}
orderedFilters.add(filter);