org.blojsom.event
Class BlojsomEvent

java.lang.Object
  extended byorg.blojsom.event.BlojsomEvent
Direct Known Subclasses:
AuthorizationEvent, BlogCategoryEvent, BlogEntryEvent, CacheUpdatedEvent, ProcessRequestEvent, ResponseSubmissionEvent

public class BlojsomEvent
extends java.lang.Object

BlojsomEvent

Since:
blojsom 2.18
Version:
$Id: BlojsomEvent.java,v 1.4 2006/01/04 16:59:54 czarneckid Exp $
Author:
David Czarnecki

Field Summary
protected  boolean _eventHandled
           
protected  java.lang.Object _source
           
protected  java.util.Date _timestamp
           
 
Constructor Summary
BlojsomEvent(java.lang.Object source, java.util.Date timestamp)
          Create a new event.
 
Method Summary
 java.lang.Object getSource()
          Retrieve the source of the event
 java.util.Date getTimestamp()
          Retrieve the timestamp when the event occurred
 boolean isEventHandled()
          Check to see if the event has already been handled or not
 void setEventHandled(boolean eventHandled)
          Set whether or not the event has been handled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_source

protected java.lang.Object _source

_timestamp

protected java.util.Date _timestamp

_eventHandled

protected boolean _eventHandled
Constructor Detail

BlojsomEvent

public BlojsomEvent(java.lang.Object source,
                    java.util.Date timestamp)
Create a new event.

Parameters:
source - Source of the event
timestamp - Event timestamp
Method Detail

getSource

public java.lang.Object getSource()
Retrieve the source of the event

Returns:
Event source

getTimestamp

public java.util.Date getTimestamp()
Retrieve the timestamp when the event occurred

Returns:
Event timestamp

isEventHandled

public boolean isEventHandled()
Check to see if the event has already been handled or not

Returns:
true if the event has been handled, false otherwise
Since:
blojsom 2.22

setEventHandled

public void setEventHandled(boolean eventHandled)
Set whether or not the event has been handled

Parameters:
eventHandled - true if the event has been handled, fasle otherwise
Since:
blojsom 2.22