Search in sources :

Example 1 with ServletListenerRegistrationBean

use of org.springframework.boot.context.embedded.ServletListenerRegistrationBean in project x-pipe by ctripcorp.

the class CatConfig method catListener.

@Bean
public ServletListenerRegistrationBean<CatListener> catListener() {
    ServletListenerRegistrationBean<CatListener> bean = new ServletListenerRegistrationBean<CatListener>(new CatListener());
    bean.setName("cat-listener");
    return bean;
}
Also used : CatListener(com.dianping.cat.servlet.CatListener) ServletListenerRegistrationBean(org.springframework.boot.context.embedded.ServletListenerRegistrationBean) ServletListenerRegistrationBean(org.springframework.boot.context.embedded.ServletListenerRegistrationBean) FilterRegistrationBean(org.springframework.boot.context.embedded.FilterRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

CatListener (com.dianping.cat.servlet.CatListener)1 FilterRegistrationBean (org.springframework.boot.context.embedded.FilterRegistrationBean)1 ServletListenerRegistrationBean (org.springframework.boot.context.embedded.ServletListenerRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1