IMO, I would move the initialization of default domain to a static block. In this block, I would also add the lib Archives after the default domain is created:
The initialization cannot be in a static block, since the libs provider is dynamic -- injected via MC beans.
- if the libraries are loaded after ClasspathFactory, we won't enter the loop
OK, while this might save us from this curent loop,
having Classpath that refs itself seems like asking for another loop trouble.
Isn't there a better/safer aka proper way of doing this?