public void setListenerClassNames(Collection eventListeners) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
if (eventListeners != null) {
for (Iterator iterator = eventListeners.iterator(); iterator.hasNext();) {
String listenerClassName = (String) iterator.next();
Class clazz = loadClass(listenerClassName);
EventListener listener = (EventListener) clazz.newInstance();
addEventListener(listener);
handler.addEventListener(listener);
}
}
}