List of usage examples for org.springframework.boot.web.servlet ServletListenerRegistrationBean getSupportedTypes
public static Set<Class<?>> getSupportedTypes()
From source file:org.springframework.boot.web.servlet.ServletContextInitializerBeans.java
@SuppressWarnings("unchecked") private void addAdaptableBeans(ListableBeanFactory beanFactory) { MultipartConfigElement multipartConfig = getMultipartConfig(beanFactory); addAsRegistrationBean(beanFactory, Servlet.class, new ServletRegistrationBeanAdapter(multipartConfig)); addAsRegistrationBean(beanFactory, Filter.class, new FilterRegistrationBeanAdapter()); for (Class<?> listenerType : ServletListenerRegistrationBean.getSupportedTypes()) { addAsRegistrationBean(beanFactory, EventListener.class, (Class<EventListener>) listenerType, new ServletListenerRegistrationBeanAdapter()); }//from w w w .j ava2s.com }