Package javax.mail.event
Class MailEvent
java.lang.Object
java.util.EventObject
javax.mail.event.MailEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConnectionEvent
,FolderEvent
,MessageChangedEvent
,MessageCountEvent
,StoreEvent
,TransportEvent
Common base class for mail events, defining the dispatch method.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MailEvent
Construct a MailEvent referring to the given source.- Parameters:
source
- the source of the event
-
-
Method Details
-
dispatch
This method invokes the appropriate method on a listener for this event. Subclasses provide the implementation.- Parameters:
listener
- the listener to invoke on
-