org.axonframework.domain
Class SystemEvent
java.lang.Object
org.axonframework.domain.EventBase
org.axonframework.domain.ApplicationEvent
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. |
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
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.