Module jakarta.cdi

Class Startup


  • public class Startup
    extends java.lang.Object

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

    Implementations have to fire this event after the event with qualifier @Initialized(ApplicationScope.class) but before processing requests.

    This event can be observed by integrators and libraries to perform any kind of early initialization as well as by users as a reliable entry point for when the CDI container is ready.

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

    See also Interceptor.Priority
    • Constructor Summary

      Constructors 
      Constructor Description
      Startup()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • Startup

        public Startup()