<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Feb 17, 2017 at 3:37 AM Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net">antoine@sabot-durand.net</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">After discussing and testing with Martin we discovered that having an Observer with a payload of type Object and an injected parameter that is not BeanManager is not supported.<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">For instance:</div><div class="gmail_msg"><span style="color:rgb(33,33,33)" class="gmail_msg">void MyObserver(@Observes </span><span style="color:rgb(33,33,33)" class="gmail_msg">Object payload, MyBean bean) { ... )</span><br class="m_7238924726105319963inbox-inbox-Apple-interchange-newline gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Which makes sense since with observer resolution rules this observer will be invoked for all Lifecycle events.</div></div></blockquote><div><br></div><div>Oh, that very specific aspect is an aspect I hadn&#39;t considered.  That makes sense.</div><div><br></div><div>Your earlier point about how MyBean might not be resolved at invocation time was one I didn&#39;t understand.  If I have:</div><div><br></div><div>void MyObserver(@Observes @Initialized(ApplicationScoped.class) Object payload, MyBean bean) { ... }</div><div><br></div><div>...then surely MyBean would be resolved at this point, by definition?  (I understand you&#39;re looking at this specific case, but even more generally here: wouldn&#39;t MyBean be guaranteed to be resolved here?)</div><div><br></div><div>Best,</div><div>Laird</div></div></div>