Unfortunately, the prototype did not work correctly. It's a complicated topic and we should be really careful so that we don't break anything. I think we could use the same workaround as in
WFLY-2690
and add a special method to the Weld API, something like org.jboss.weld.manager.api.WeldManager.createComponentAnnotatedType() - this method would use a combination of a bean archive identifier and class' classloader hashCode as the BDA ID.
|