Search in sources :

Example 1 with DelegatingApplicationListener

use of org.springframework.security.context.DelegatingApplicationListener in project spring-security by spring-projects.

the class SessionManagementConfigurer method registerDelegateApplicationListener.

private void registerDelegateApplicationListener(H http, ApplicationListener<?> delegate) {
    DelegatingApplicationListener delegating = getBeanOrNull(DelegatingApplicationListener.class);
    if (delegating == null) {
        return;
    }
    SmartApplicationListener smartListener = new GenericApplicationListenerAdapter(delegate);
    delegating.addListener(smartListener);
}
Also used : SmartApplicationListener(org.springframework.context.event.SmartApplicationListener) GenericApplicationListenerAdapter(org.springframework.context.event.GenericApplicationListenerAdapter) DelegatingApplicationListener(org.springframework.security.context.DelegatingApplicationListener)

Aggregations

GenericApplicationListenerAdapter (org.springframework.context.event.GenericApplicationListenerAdapter)1 SmartApplicationListener (org.springframework.context.event.SmartApplicationListener)1 DelegatingApplicationListener (org.springframework.security.context.DelegatingApplicationListener)1