org.axonframework.domain
Class SystemEvent

java.lang.Object
  extended by org.axonframework.domain.EventBase
      extended by org.axonframework.domain.ApplicationEvent
          extended by org.axonframework.domain.SystemEvent
All Implemented Interfaces:
Serializable, Event

public abstract class SystemEvent
extends ApplicationEvent

System events are a special type of application event. They notify the application of a state change of an application component.

In addition to the information provided by the ApplicationEvent, system events also provide information about the exception that caused the event.

Since:
0.4
Author:
Allard Buijze
See Also:
Serialized Form

Constructor Summary
protected SystemEvent(Object source)
          Initialize a system event with the given source, and without an explicit cause.
protected SystemEvent(Object source, Throwable cause)
          Initialize a system event with the given source and cause.
 
Method Summary
 Throwable getCause()
          Returns the cause that was attached to this event.
 
Methods inherited from class org.axonframework.domain.ApplicationEvent
getSource, getSourceDescription, getSourceType
 
Methods inherited from class org.axonframework.domain.EventBase
addMetaData, equals, getEventIdentifier, getEventRevision, getMetaData, getMetaDataValue, getTimestamp, hashCode, setEventRevision
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemEvent

protected SystemEvent(Object source)
Initialize a system event with the given source, and without an explicit cause.

Parameters:
source - The instance that reported this event. May be null.

SystemEvent

protected SystemEvent(Object source,
                      Throwable cause)
Initialize a system event with the given source and cause.

Parameters:
source - The instance that reported this event. May be null.
cause - The exception that cause this event to be dispatched
Method Detail

getCause

public Throwable getCause()
Returns the cause that was attached to this event. Can return null.

Returns:
the cause that was attached to this event. Can return null.


Copyright © 2011. All Rights Reserved.