First, the container calls the bean constructor (the default constructor or the one annotated @Inject), to obtain an instance of the bean.
Next, the container initializes the values of all injected fields of the bean.
Next, the container calls all initializer methods of bean (the call order is not portable, don't rely on it).
Finally, the @PostConstruct method, if any, is called.
This is in the documentation of weld.
First, the Web Bean manager calls the Web Bean constructor, to obtain an instance of the Web Bean.
Next, the Web Bean manager initializes the values of all injected fields of the Web Bean.
Next, the Web Bean manager calls all initializer methods of Web Bean.
Finally, the @PostConstruct method of the Web Bean, if any, is called.
The previous webbeans documentation is with similar words as well.
Yet, the @Initializer changes to @Inject. So the second next is wrong? Maybe it should be call all Inject methods of bean? It make me confused when I see the initializer methods definition in the documentation while I have no idea what initializer method is. So I compare with the previous version documentation of weld. So I think I know what it is now. Is my understanding correct? Looking forward to seeing replies. Thanks.
The initializer method means the method with @Inject. Is that right?