*
* @param listener event listener reference
*/
public synchronized void setEventListener(EventListener listener) {
this.listener = listener;
eventAggregator = new EventAggregator(listener);
if (ftpClient != null) {
eventAggregator.setConnId(ftpClient.getId());
ftpClient.setMessageListener(eventAggregator);
ftpClient.setProgressMonitor(eventAggregator);
ftpClient.setProgressMonitorEx(eventAggregator);