Annotation Type Startup


  • @Retention(RUNTIME)
    @Documented
    @Target(TYPE)
    public @interface Startup
    Designates the target type as a server-side bean that should be created immediately when the application is deployed within the server. Normally, CDI beans are instantiated lazily when first needed, but @Startup beans have their PostConstruct methods called early in the server-side CDI application lifecycle.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int priority  
      StartupType value
      Specifies which cohort this bean is initialized in.
    • Element Detail

      • value

        StartupType value
        Specifies which cohort this bean is initialized in.
        Default:
        org.uberfire.commons.services.cdi.StartupType.EAGER
      • priority

        int priority
        Default:
        0