org.bushe.swing.event
Class AbstractEventServiceEvent
java.lang.Object
org.bushe.swing.event.AbstractEventServiceEvent
- All Implemented Interfaces:
- EventServiceEvent, PublicationStatusTracker
- Direct Known Subclasses:
- ObjectEvent, SubscriberTimingEvent
public abstract class AbstractEventServiceEvent
- extends java.lang.Object
- implements EventServiceEvent, PublicationStatusTracker
Convenience base class for EventServiceEvents in the application. Provides the convenience of
holding the event source publication and event status. It is not necessary to use this event class when
using an EventService.
|
Field Summary |
protected java.lang.Object |
stateLock
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stateLock
protected final java.lang.Object stateLock
AbstractEventServiceEvent
public AbstractEventServiceEvent(java.lang.Object source)
- Default constructor
- Parameters:
source - the source of the event
getSource
public java.lang.Object getSource()
- Specified by:
getSource in interface EventServiceEvent
- Returns:
- the source of this event
getPublicationStatus
public PublicationStatus getPublicationStatus()
- Description copied from interface:
PublicationStatusTracker
- Implementations of this method must be made thread safe.
- Specified by:
getPublicationStatus in interface PublicationStatusTracker
- Returns:
- last value set by setPublicationStatus(), or
PublicationStatus.Unpublished if setPublicationStatus was never called.
setPublicationStatus
public void setPublicationStatus(PublicationStatus status)
- Description copied from interface:
PublicationStatusTracker
- Implementations of this method must be made thread safe.
- Specified by:
setPublicationStatus in interface PublicationStatusTracker
- Parameters:
status - the status of the event during it's current publication
Copyright © 2010 Bushe Enterprises, Inc.. All Rights Reserved.