T
- the type of listenerServletListenerRegistrationBean
@Deprecated public class ServletListenerRegistrationBean<T extends EventListener> extends ServletListenerRegistrationBean<T> implements ServletContextInitializer
ServletContextInitializer
to register EventListener
s in a Servlet
3.0+ container. Similar to the registration
features provided by ServletContext
but with a Spring Bean
friendly design.
This bean can be used to register the following types of listener:
ServletContextAttributeListener
ServletRequestListener
ServletRequestAttributeListener
HttpSessionAttributeListener
HttpSessionListener
ServletContextListener
Constructor and Description |
---|
ServletListenerRegistrationBean()
Deprecated.
|
ServletListenerRegistrationBean(T listener)
Deprecated.
|
getListener, getSupportedTypes, isSupportedType, onStartup, setListener
addInitParameter, configure, getInitParameters, getOrDeduceName, getOrder, isAsyncSupported, isEnabled, setAsyncSupported, setEnabled, setInitParameters, setName, setOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup
public ServletListenerRegistrationBean()
public ServletListenerRegistrationBean(T listener)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.