Package org.apache.maven.execution
Interface ExecutionEvent
-
public interface ExecutionEvent
Holds data relevant for an execution event.- Author:
- Benjamin Bentmann
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ExecutionEvent.Type
The possible types of execution events.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
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
null
if not applicable.
-
getMojoExecution
MojoExecution getMojoExecution()
Gets the current mojo execution (if any).- Returns:
- The current mojo execution or
null
if not applicable.
-
getException
Exception getException()
Gets the exception that caused the event (if any).- Returns:
- The exception or
null
if none.
-
-