| Constructor and Description |
|---|
DefaultEvent(AbstractSession session,
ExecutionEvent delegate) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Exception> |
getException()
Gets the exception that caused the event (if any).
|
Optional<MojoExecution> |
getMojoExecution()
Gets the current mojo execution (if any).
|
Optional<Project> |
getProject()
Gets the current project (if any).
|
Session |
getSession()
Gets the session from which this event originates.
|
EventType |
getType()
Gets the type of the event.
|
public DefaultEvent(AbstractSession session, ExecutionEvent delegate)
public EventType getType()
Eventpublic Session getSession()
EventgetSession in interface Eventnull.public Optional<Project> getProject()
EventgetProject in interface Eventempty() if not applicable.public Optional<MojoExecution> getMojoExecution()
EventgetMojoExecution in interface Eventempty() if not applicable.public Optional<Exception> getException()
EventgetException in interface Eventempty() if none.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.