Class DefaultExecutionEvent
java.lang.Object
org.apache.maven.lifecycle.internal.DefaultExecutionEvent
- All Implemented Interfaces:
ExecutionEvent
Holds data relevant for an execution event.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.execution.ExecutionEvent
ExecutionEvent.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Exception
private final MojoExecution
private final MavenSession
private final ExecutionEvent.Type
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExecutionEvent
(ExecutionEvent.Type type, MavenSession session, MojoExecution mojoExecution, Exception exception) -
Method Summary
Modifier and TypeMethodDescriptionGets the exception that caused the event (if any).Gets the current mojo execution (if any).Gets the current project (if any).Gets the session from which this event originates.getType()
Gets the type of the event.
-
Field Details
-
type
-
session
-
mojoExecution
-
exception
-
-
Constructor Details
-
DefaultExecutionEvent
DefaultExecutionEvent(ExecutionEvent.Type type, MavenSession session, MojoExecution mojoExecution, Exception exception)
-
-
Method Details
-
getType
Description copied from interface:ExecutionEvent
Gets the type of the event.- Specified by:
getType
in interfaceExecutionEvent
- Returns:
- The type of the event, never
null
.
-
getSession
Description copied from interface:ExecutionEvent
Gets the session from which this event originates.- Specified by:
getSession
in interfaceExecutionEvent
- Returns:
- The current session, never
null
.
-
getProject
Description copied from interface:ExecutionEvent
Gets the current project (if any).- Specified by:
getProject
in interfaceExecutionEvent
- Returns:
- The current project or
null
if not applicable.
-
getMojoExecution
Description copied from interface:ExecutionEvent
Gets the current mojo execution (if any).- Specified by:
getMojoExecution
in interfaceExecutionEvent
- Returns:
- The current mojo execution or
null
if not applicable.
-
getException
Description copied from interface:ExecutionEvent
Gets the exception that caused the event (if any).- Specified by:
getException
in interfaceExecutionEvent
- Returns:
- The exception or
null
if none.
-