Annotation Interface Eager


@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) @Documented public @interface Eager
Marks the annotated bean as eagerly initialized. May be applied to a bean class, producer method or field or stereotype.

Only @ApplicationScoped beans may be eagerly initialized.

A contextual instance of an eagerly initialized bean is created no later than at the moment the container fires the Startup event.

Since:
5.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Supports inline instantiation of the Eager annotation.