ApplicationScoped
ApplicationScoped is a scope annotation used in CDI-based applications to control the lifecycle of beans. It indicates that a bean instance is shared across the entire application and survives for the duration of the application’s life. In Java EE and Jakarta EE contexts, the annotation is typically found as javax.enterprise.context.ApplicationScoped (older CDI) or jakarta.enterprise.context.ApplicationScoped (Jakarta namespace).
In practice, a bean annotated with ApplicationScoped is created once (either at deployment or on first use)
Common use cases for ApplicationScoped beans include configuration data, expensive or shared resources, service facades, and
Notes and considerations: ApplicationScoped is distinct from EJB’s @Singleton and from per-request or per-session scopes. In