Weld registers a special built-in bean instance per each bean archive (e.g. EventBean) and creates a proxy class whose name contains the bean id. As a result, there are several duplicit proxy classes generated. It should be safe to share the proxy class for the beans of the same type (e.g. all EventBean instances). |