Class DefaultExecutionEvent
- java.lang.Object
-
- org.apache.maven.lifecycle.internal.DefaultExecutionEvent
-
- All Implemented Interfaces:
ExecutionEvent
class DefaultExecutionEvent extends java.lang.Object implements 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
Fields Modifier and Type Field Description private java.lang.Exceptionexceptionprivate MojoExecutionmojoExecutionprivate MavenSessionsessionprivate ExecutionEvent.Typetype
-
Constructor Summary
Constructors Constructor Description DefaultExecutionEvent(ExecutionEvent.Type type, MavenSession session, MojoExecution mojoExecution, java.lang.Exception exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ExceptiongetException()Gets the exception that caused the event (if any).MojoExecutiongetMojoExecution()Gets the current mojo execution (if any).MavenProjectgetProject()Gets the current project (if any).MavenSessiongetSession()Gets the session from which this event originates.ExecutionEvent.TypegetType()Gets the type of the event.
-
-
-
Field Detail
-
type
private final ExecutionEvent.Type type
-
session
private final MavenSession session
-
mojoExecution
private final MojoExecution mojoExecution
-
exception
private final java.lang.Exception exception
-
-
Constructor Detail
-
DefaultExecutionEvent
DefaultExecutionEvent(ExecutionEvent.Type type, MavenSession session, MojoExecution mojoExecution, java.lang.Exception exception)
-
-
Method Detail
-
getType
public ExecutionEvent.Type getType()
Description copied from interface:ExecutionEventGets the type of the event.- Specified by:
getTypein interfaceExecutionEvent- Returns:
- The type of the event, never
null.
-
getSession
public MavenSession getSession()
Description copied from interface:ExecutionEventGets the session from which this event originates.- Specified by:
getSessionin interfaceExecutionEvent- Returns:
- The current session, never
null.
-
getProject
public MavenProject getProject()
Description copied from interface:ExecutionEventGets the current project (if any).- Specified by:
getProjectin interfaceExecutionEvent- Returns:
- The current project or
nullif not applicable.
-
getMojoExecution
public MojoExecution 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
public java.lang.Exception getException()
Description copied from interface:ExecutionEventGets the exception that caused the event (if any).- Specified by:
getExceptionin interfaceExecutionEvent- Returns:
- The exception or
nullif none.
-
-