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()
ExecutionEventgetType in interface ExecutionEventnull.public MavenSession getSession()
ExecutionEventgetSession in interface ExecutionEventnull.public MavenProject getProject()
ExecutionEventgetProject in interface ExecutionEventnull if not applicable.public MojoExecution getMojoExecution()
ExecutionEventgetMojoExecution in interface ExecutionEventnull if not applicable.public java.lang.Exception getException()
ExecutionEventgetException in interface ExecutionEventnull if none.