[cdi-dev] Section 5.5.2

Rick Hightower richardhightower at gmail.com
Tue Oct 18 17:34:35 EDT 2011


Is section 5.5.2 trying to say this:

•CDI ensures:
–All fields are injected (of superclasses and current class) before
initializer methods are called
–Injected fields include Java EE resource dependencies
–@PostConstruct are called after initializers
–Java EE: servlet init() method after initializers


It says....

The container must ensure that:

• Initializer methods declared by a class X in the type hierarchy of the
bean are called after all injected fields declared by X or by superclasses
of X have been initialized, and after all Java EE component environment
resource dependencies declared by X or by superclasses of X have been
injected.

• Any @PostConstruct callback declared by a class X in the type hierarchy of
the bean is called after all initializer meth- ods declared by X or by
superclasses of X have been called, after all injected fields declared by X
or by superclasses of X have been initialized, and after all Java EE
component environment resource dependencies declared by X or by su-
perclasses of X have been injected.

• Any servlet init() method is called after all initializer methods have
been called, all injected fields have been initial- ized and all Java EE
component environment resource dependencies have been injected.



-- 
*Rick Hightower*
(415) 968-9037
Profile <http://www.google.com/profiles/RichardHightower>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20111018/10557ae8/attachment-0001.html 


More information about the cdi-dev mailing list