Package org.apache.maven.execution
Interface ExecutionEvent
-
- All Known Implementing Classes:
DefaultExecutionEvent
public interface ExecutionEventHolds data relevant for an execution event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classExecutionEvent.TypeThe possible types of execution events.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getType
ExecutionEvent.Type getType()
Gets the type of the event.- Returns:
- The type of the event, never
null.
-
getSession
MavenSession getSession()
Gets the session from which this event originates.- Returns:
- The current session, never
null.
-
getProject
MavenProject getProject()
Gets the current project (if any).- Returns:
- The current project or
nullif not applicable.
-
getMojoExecution
MojoExecution getMojoExecution()
Gets the current mojo execution (if any).- Returns:
- The current mojo execution or
nullif not applicable.
-
getException
java.lang.Exception getException()
Gets the exception that caused the event (if any).- Returns:
- The exception or
nullif none.
-
-