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