org.springframework.boot.context.embedded.ServletListenerRegistrationBean Java Examples

The following examples show how to use org.springframework.boot.context.embedded.ServletListenerRegistrationBean. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CatConfig.java    From x-pipe with Apache License 2.0 5 votes vote down vote up
@Bean
public ServletListenerRegistrationBean<CatListener> catListener() {
	
	ServletListenerRegistrationBean<CatListener> bean = new ServletListenerRegistrationBean<CatListener>(
			new CatListener());
	bean.setName("cat-listener");
	return bean;
}
 
Example #2
Source File: SecurityConfig.java    From spring-boot-samples with Apache License 2.0 4 votes vote down vote up
@Bean
public ServletListenerRegistrationBean<HttpSessionEventPublisher> httpSessionEventPublisher() {
    return new ServletListenerRegistrationBean<HttpSessionEventPublisher>(new HttpSessionEventPublisher());
}
 
Example #3
Source File: MultiHttpSecurityConfig.java    From enhanced-pet-clinic with Apache License 2.0 4 votes vote down vote up
@Bean
public static ServletListenerRegistrationBean<HttpSessionEventPublisher> httpSessionEventPublisher() {
	return new ServletListenerRegistrationBean<HttpSessionEventPublisher>(new HttpSessionEventPublisher());
}