Weld registers a special built-in bean instance {{Bean}} per each bean archive (e.g. for {{ EventBean javax.enterprise.event.Event }} , {{java.security.Principal}}, etc. ) and also creates a proxy class whose for each such bean (the proxy class name contains the bean id ) . As a result, there are several duplicit redundant proxy classes generated. It should be safe to share the a proxy class for all the beans of the same type (e.g. all {{EventBean}} instances). |
|