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 Exceptionprivate final MojoExecutionprivate final MavenSessionprivate 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:ExecutionEventGets the type of the event.- Specified by:
getTypein interfaceExecutionEvent- Returns:
- The type of the event, never
null.
-
getSession
Description copied from interface:ExecutionEventGets the session from which this event originates.- Specified by:
getSessionin interfaceExecutionEvent- Returns:
- The current session, never
null.
-
getProject
Description copied from interface:ExecutionEventGets the current project (if any).- Specified by:
getProjectin interfaceExecutionEvent- Returns:
- The current project or
nullif not applicable.
-
getMojoExecution
Description copied from interface:ExecutionEventGets the current mojo execution (if any).- Specified by:
getMojoExecutionin interfaceExecutionEvent- Returns:
- The current mojo execution or
nullif not applicable.
-
getException
Description copied from interface:ExecutionEventGets the exception that caused the event (if any).- Specified by:
getExceptionin interfaceExecutionEvent- Returns:
- The exception or
nullif none.
-