Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.0.1.Final
-
None
-
Workaround Exists
-
Description
If the observer method of a bean is private, and the bean which contains it has a scope (it's proxied), then injection into the bean does not occur.
For example, the injection points are null when the following observer is invoked:
@SessionScoped
public class SampleObserver implements Serializable {
@Inject SampleHelper helper;
private void observes(@Observes final SampleBean bean)
{ System.out.println("Did injection occur? " + (helper = null ? "no" : "yes")); }}
Prints:
Did injection occur? no
Attachments
Issue Links
- is duplicated by
-
WELD-506 Private container-invoked methods not working on proxies
- Closed