|
Why don’t we just add the following method to RegistryBuilder…
/** * Adds the default module descriptor provider to this <code>RegistryBuilder</code>. * @since 1.1 * @see #constructDefaultRegistry() * */ public void addDefaultModuleDescriptorProvider() { addModuleDescriptorProvider(new XmlModuleDescriptorProvider(new DefaultClassResolver())); }
Of course, to avoid duplication, we would change the createDefaultRegistry() method to call this method prior to calling constructRegistry(). |
