Module jakarta.cdi

Class Shutdown

  • public class Shutdown
    extends java.lang.Object

    A CDI event with payload of type Shutdown and qualifier Any is synchronously fired by CDI container during application shutdown. Applications must never manually fire any events with Shutdown as payload.

    Implementations have to fire this event during CDI container shutdown, but not later than the event with qualifier @BeforeDestroyed(ApplicationScoped.class).

    This event can be observed by integrators and libraries to perform any kind of pre-shutdown operation as well as by users as a reliable entry point for when the CDI container is about to shut down.

    Observers are encouraged to specify @Priority to determine ordering with lower priority numbers being recommended for user applications and higher numbers for platform/framework/library integration.

    See also Interceptor.Priority
    • Constructor Summary

      Constructor Description
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Shutdown

        public Shutdown()