1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.mail.event;
  6. import java.util.EventObject;
  7. /**
  8. * Common base class for mail events, defining the dispatch method.
  9. *
  10. * @author Bill Shannon
  11. */
  12. public abstract class MailEvent extends EventObject {
  13. public MailEvent(Object source) {
  14. super(source);
  15. }
  16. /**
  17. * This method invokes the appropriate method on a listener for
  18. * this event. Subclasses provide the implementation.
  19. */
  20. public abstract void dispatch(Object listener);
  21. }