@Experimental public interface Event
Listener
s objects
registered in the Session
.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.
|
@Nonnull EventType getType()
null
.@Nonnull Session getSession()
null
.@Nonnull Optional<Project> getProject()
empty()
if not applicable.@Nonnull Optional<MojoExecution> getMojoExecution()
empty()
if not applicable.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.