Handling PostConstruct annotations - wrong order
------------------------------------------------
Key: MYFACES-1761
URL: https://issues.apache.org/jira/browse/MYFACES-1761
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.2.0, 1.2.1-SNAPSHOT
Reporter: Bernhard Huemer
Fix For: 1.2.1-SNAPSHOT
The specification states that managed bean methods annotated with
@PostConstruct have to be called after the object is initialized and after
dependency injection is performed. However, MyFaces calls those methods after
the bean instance is created but before dependency injection is performed (for
example, see
http://mail-archives.apache.org/mod_mbox/myfaces-users/200711.mbox/[EMAIL
PROTECTED]). In order to resolve this bug the LifecycleProvider interface has
to be changed. Currently there's only one method responsible for
creating/initializing a new bean: newInstance(). This design choice implicates
that there's no possibility to seperate the steps "creating the bean" and
"postconstructing the bean".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.