Package org.apache.maven.internal.impl
Class DefaultEvent
java.lang.Object
org.apache.maven.internal.impl.DefaultEvent
- All Implemented Interfaces:
Event
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DefaultEvent
-
-
Method Details
-
getType
Description copied from interface:EventGets the type of the event. -
getSession
Description copied from interface:EventGets the session from which this event originates.- Specified by:
getSessionin interfaceEvent- Returns:
- the current session, never
null
-
getProject
Description copied from interface:EventGets the current project (if any).- Specified by:
getProjectin interfaceEvent- Returns:
- the current project or
empty()if not applicable
-
getMojoExecution
Description copied from interface:EventGets the current mojo execution (if any).- Specified by:
getMojoExecutionin interfaceEvent- Returns:
- the current mojo execution or
empty()if not applicable
-
getException
Description copied from interface:EventGets the exception that caused the event (if any).- Specified by:
getExceptionin interfaceEvent- Returns:
- the exception or
empty()if none
-