-
1. Re: What subtype of ProcessBean should be fired for an extension?
tremes Feb 8, 2017 2:23 AM (in response to ljnelson)Hi,
It's interesting question. On the other hand ProcessSyntheticBean javadoc says:
The container fires an event of this type for each custom bean implementation added through
* {@link AfterBeanDiscovery#addBean()} or {@link AfterBeanDiscovery#addBean(Bean)}ProcessSyntheticBean also has this getSource() method, which doesn't make sense for a bean representing a portable extension.
-
2. Re: What subtype of ProcessBean should be fired for an extension?
mkouba Feb 8, 2017 3:08 AM (in response to ljnelson)I agree with Tom. It makes sense to fire
ProcessBean
for all extension and built-in beans.ProcessSyntheticBean
is intended for custom beans provided by extensions (hence thegetSource()
method). -
3. Re: What subtype of ProcessBean should be fired for an extension?
ljnelson Feb 8, 2017 1:37 PM (in response to mkouba)Sure; that's fine, but extra specification/javadoc language about this should be added, right?
-
4. Re: What subtype of ProcessBean should be fired for an extension?
tremes Feb 9, 2017 1:25 AM (in response to ljnelson)I am not sure to be honest. ProcessBean chapter quite explicitly states:
The container must fire an event for each bean, interceptor or decorator deployed in a bean archive
which applies also to built-in beans as well. Maybe we can improve javadoc. Feel free to create/suggest an issue at - JBoss Issue Tracker