What is the equivalent of @ManagedBean(eager=true) in CDI
As we all know that it is recommended to use annotations from javax.enterprise.context instead of javax.faces.bean as they are getting deprecated. And we all found ManagedBeans with eager="true" annotated with @ApplicationScoped from javax.faces.bean and having a @PostConstruct method are very useful to do web application initialization e.g: read properties from file system, initialize database connections, etc... Example : import javax.faces.bean.ApplicationScoped; import javax.faces.bean.ManagedBean; import javax.annotation.PostConstruct; @ApplicationScoped @ManagedBean(eager=true) public