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()
Event
public Session getSession()
Event
getSession
in interface Event
null
.public Optional<Project> getProject()
Event
getProject
in interface Event
empty()
if not applicable.public Optional<MojoExecution> getMojoExecution()
Event
getMojoExecution
in interface Event
empty()
if not applicable.public Optional<Exception> getException()
Event
getException
in interface Event
empty()
if none.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.