Hi guys,
While executing the standalone TCK tests related with "Event and Observers", I tackled the one point.
Specification says that whenever the bean uses the @Fires annotation on its class field, like @Fires Event<T>, container provides the implicit bean component. But it does/may not say that you have to add this implicit bean component to the "Manager"'s beans bag. So when resolving the implicit event object with Manager#resolveByType method, our implementation returns no bean.
What we do is that whenever the field injection is annotated with @Fires, we create a new implicit bean object and add it into the bean Dependent context, but not add this implicit bean into the Manager's bag.
But in the TCK, it requires that Manager adds this implicit bean into its
bag.
Actually, these are also applied for all implicit beans except the Manager and Conversation beans.
WDYT?
/Gurkan