public class SessionEventHttpSessionListenerAdapter extends java.lang.Object implements org.springframework.context.ApplicationListener<AbstractSessionEvent>, org.springframework.web.context.ServletContextAware
SessionDestroyedEvent
and SessionCreatedEvent
and translates
them into HttpSessionEvent
and submits the HttpSessionEvent
to every
registered HttpSessionListener
.Constructor and Description |
---|
SessionEventHttpSessionListenerAdapter(java.util.List<HttpSessionListener> listeners) |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(AbstractSessionEvent event) |
void |
setServletContext(ServletContext servletContext) |
public SessionEventHttpSessionListenerAdapter(java.util.List<HttpSessionListener> listeners)
public void onApplicationEvent(AbstractSessionEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<AbstractSessionEvent>
public void setServletContext(ServletContext servletContext)
setServletContext
in interface org.springframework.web.context.ServletContextAware