class DefaultExecutionEvent extends java.lang.Object implements ExecutionEvent
ExecutionEvent.Type
Modifier and Type | Field and Description |
---|---|
private java.lang.Exception |
exception |
private MojoExecution |
mojoExecution |
private MavenSession |
session |
private ExecutionEvent.Type |
type |
Constructor and Description |
---|
DefaultExecutionEvent(ExecutionEvent.Type type,
MavenSession session,
MojoExecution mojoExecution,
java.lang.Exception exception) |
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Gets the exception that caused the event (if any).
|
MojoExecution |
getMojoExecution()
Gets the current mojo execution (if any).
|
MavenProject |
getProject()
Gets the current project (if any).
|
MavenSession |
getSession()
Gets the session from which this event originates.
|
ExecutionEvent.Type |
getType()
Gets the type of the event.
|
private final ExecutionEvent.Type type
private final MavenSession session
private final MojoExecution mojoExecution
private final java.lang.Exception exception
DefaultExecutionEvent(ExecutionEvent.Type type, MavenSession session, MojoExecution mojoExecution, java.lang.Exception exception)
public ExecutionEvent.Type getType()
ExecutionEvent
getType
in interface ExecutionEvent
null
.public MavenSession getSession()
ExecutionEvent
getSession
in interface ExecutionEvent
null
.public MavenProject getProject()
ExecutionEvent
getProject
in interface ExecutionEvent
null
if not applicable.public MojoExecution getMojoExecution()
ExecutionEvent
getMojoExecution
in interface ExecutionEvent
null
if not applicable.public java.lang.Exception getException()
ExecutionEvent
getException
in interface ExecutionEvent
null
if none.