}
private void fireEvent(EventType event) {
for (SessionInterceptor l : getSessionRequestContext().getSessionConfig().getSessionInterceptors()) {
if (l instanceof SessionLifecycleListener) {
SessionLifecycleListener listener = (SessionLifecycleListener) l;
try {
switch (event) {
case RECREATED:
listener.sessionInvalidated(this);
case CREATED:
listener.sessionCreated(this);
case VISITED:
listener.sessionVisited(this);
break;
case INVALIDATED:
listener.sessionInvalidated(this);
break;
default:
unreachableCode();
}
} catch (Exception e) {
// ������listener������Ӧ�õ��˳���
log.error("Listener \"" + listener.getClass().getSimpleName() + "\" failed", e);
}
}
}
}