if (listeners != null && listeners.size() > 0) {
if (event == null)
event = new HttpSessionEvent(this);
for (int i = 0; i < listeners.size(); i++) {
HttpSessionActivationListener listener = listeners.get(i);
listener.sessionWillPassivate(event);
}
}
for (Map.Entry entry : set) {
Object value = entry.getValue();
if (value instanceof HttpSessionActivationListener) {
HttpSessionActivationListener listener
= (HttpSessionActivationListener) value;
if (event == null)
event = new HttpSessionEvent(this);
listener.sessionWillPassivate(event);
}
}
}
synchronized (this) {