Vector listenersClone = null;
synchronized (listeners) {
listenersClone = (Vector) listeners.clone();
}
for (Enumeration e = listenersClone.elements(); e.hasMoreElements();) {
ConfigContextEventListener nl = (ConfigContextEventListener) e.nextElement();
if(when.equals(PRE_CHANGE)) {
/*
if(type.equals(ConfigContextEvent.PRE_ACCESS) || type.equals(ConfigContextEvent.POST_ACCESS))
nl.preAccessNotification(ne);
else
*/
nl.preChangeNotification(ne);
} else {
/*
if(type.equals(ConfigContextEvent.PRE_ACCESS) || type.equals(ConfigContextEvent.POST_ACCESS))
nl.postAccessNotification(ne);
else
*/
nl.postChangeNotification(ne);
}
}
}