Package io.quarkus.deployment.builditem
Class ShutdownListenerBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.ShutdownListenerBuildItem
public final class ShutdownListenerBuildItem
extends io.quarkus.builder.item.MultiBuildItem
A build item that holds a
ShutdownListener instance.
Allows registration of listeners to be notified during application shutdown.
It should be noted, that in most cases, this build item should not be used and instead extensions should opt for
ShutdownContext (via ShutdownContextBuildItem)
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final io.quarkus.runtime.shutdown.ShutdownListener -
Constructor Summary
ConstructorsConstructorDescriptionShutdownListenerBuildItem(io.quarkus.runtime.shutdown.ShutdownListener shutdownListener) -
Method Summary
Modifier and TypeMethodDescriptionio.quarkus.runtime.shutdown.ShutdownListener
-
Field Details
-
shutdownListener
final io.quarkus.runtime.shutdown.ShutdownListener shutdownListener
-
-
Constructor Details
-
ShutdownListenerBuildItem
public ShutdownListenerBuildItem(io.quarkus.runtime.shutdown.ShutdownListener shutdownListener)
-
-
Method Details
-
getShutdownListener
public io.quarkus.runtime.shutdown.ShutdownListener getShutdownListener()
-