private void sendEvents(AMEvent dpEvent){
synchronized (listeners) {
    Iterator iterator=listeners.iterator();
    while (iterator.hasNext()) {
      AMEventListener listener=(AMEventListener)iterator.next();
      try {
switch (dpEvent.getEventType()) {
case AMEvent.OBJECT_CHANGED:
case AMEvent.OBJECT_EXPIRED:
          listener.objectChanged(dpEvent);
        break;
case AMEvent.OBJECT_REMOVED:
      listener.objectRemoved(dpEvent);
    break;
case AMEvent.OBJECT_RENAMED:
  listener.objectRenamed(dpEvent);
break;
default :
}
}
 catch (Throwable t) {
}
}
}
}

private void sendEvents ( AMEvent dpEvent ) { synchronized ( listeners ) { Iterator iterator = listeners . iterator ( ) ; while ( iterator . hasNext ( ) ) { AMEventListener listener = ( AMEventListener ) iterator . next ( ) ; try { switch ( dpEvent . getEventType ( ) ) { case AMEvent . OBJECT_CHANGED : case AMEvent . OBJECT_EXPIRED : listener . objectChanged ( dpEvent ) ; break ; case AMEvent . OBJECT_REMOVED : listener . objectRemoved ( dpEvent ) ; break ; case AMEvent . OBJECT_RENAMED : listener . objectRenamed ( dpEvent ) ; break ; default : } } catch ( Throwable t ) { } } } }
this method sends the event to all the event listeners .
